English Amiga Board


Go Back   English Amiga Board > Support > support.AmigaOS

 
 
Thread Tools
Old 23 October 2023, 15:17   #1
DisasterIncarna
Registered User
 
DisasterIncarna's Avatar
 
Join Date: Oct 2021
Location: England
Posts: 1,279
Poor Mans Package Manager - Basic or Advanced

So I have recently been pondering over a nice simple way to abuse/use UHC-Tools again to give me the equivalent of a poor mans Package Manager, vaguely like some tools on linux such as Synaptic Package Manager.

I know how to achieve this reasonably well, for a quick example here is a picture showing the basic idea.



In the picture we can see i start with "AminetSearch AHI DRIVER/AUDIO" and a big old list of stuff is shown, i choose what i specifically want to see and search again for "AminetSearch m68k-amigaos-ahiusr.lha driver/audio retargetable audio, user's archive".

This is handy because when you search for the exact filename, category/path and description you get 1 result back because your search was so exact.

You can now do

"AminetReadme 0 >RAM:SearchResult.TXT"

now you have the readme for the only possible result and inside that readme is a very handy VERSION entry with a very useful Version Number which we can now scrape.

So what can be done here, well in my case i have a button to add a search result entry like the one above to a file, this contains the Filename/Path/Description/Version Number or files i choose to watch for updates, once added the Filename/Path/Description text are appended together and are used to narrow down the search like above to 1 possible result, the version number is scraped and that is also added and now Filename/path/Description/Version Number are saved.

Multiple entries can be added this way into the list, so now i have another button "Check for Updates", this just reads 1 line at a time all the entries, the same as above occurs, the saved Filename/Path/Description are sent as a search and the current ReadMe for it is saved to ram and the version number is checked, if the version number of the file extracted from the file in RAM: is different/higher than the one saved in the file of watched entries then what we have is a probable update.

We can now inform the user of an update, auto download the update somewhere, record the updated version number to your save file replacing the older version number and all is well in the world.

======

The issue now is, i can leave it at that, the very very very basics, still useful imho and thats kind of where i am most comfortable leaving my work in progress new feature, however its not "quite" package manager level like you get on linux, so i am left wondering should i "KISS - Keep It Simple Stupid" or should i try and have it attempt to auto install something to the correct place(s) IF it can work it out, something like new library files/etc should be doable but i know i could potentially screw up somebodys manually kept setups which makes me lean back towards the simple/dumb solution.

It hasnt happened to me often but i do remember a few rogue Installer scripts that didnt have an expert level and it just straight up installed older stuff over my newer files, mostly library files and that is the kind of vibe i am getting from this if i go too far, esp when im no real expert on this kind of thing.

Image below shows the bottom listview containing files to watch for updates, still needs irevevant text removed but this is what im looking at currently, but as i mentioned above, is this "too" basic and not very useful or does it really need something more? maybe see if an install script exists and auto execute that and let it handle things?

I can easily see someone way better at this than me making something far better doing something similar but until that time i am inclining towards my "better than nothing" simple solution.


Last edited by DisasterIncarna; 23 October 2023 at 15:24.
DisasterIncarna is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compute!'s Advanced Amiga BASIC amiwolf request.Apps 0 12 January 2019 21:49
Blitz Basic and advanced graphics JPQ Coders. Blitz Basic 9 22 March 2015 16:40
Tester for Grunch (Package-Manager) 68k database? OlafSch Amiga scene 2 04 January 2012 13:35
WEC LE MANS amiga GFX + cars dlfrsilver project.aGTW 41 18 April 2011 21:33
WEC Le Mans Frog request.Old Rare Games 6 12 November 2002 12:40

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:42.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06994 seconds with 15 queries