Service Pack auto check

This is getting a bit more Windows-like. When the PPM is started, /usr/local/petget/service_pack.sh is run as a separate process, and if there is an Internet connection, tests for availability of a Service Pack.

The current version is obtained from variable DISTRO_VERSION in file /etc/DISTRO_SPECS, and checked against the online Service Packs, that reside in the PET home directory, in that case of Precise Puppy that will be 'pet_packages-precise'.

The Service Pack PET must be named according to this format:

service_pack[*]-<current-version>_TO_<upgrade-version>[_*].pet
or
service_pack[*]-<current-version>_TO_<upgrade-version>[-*].pet

Where the square brackets mean optional extra text. Acceptable examples:

service_pack-5.4.1_TO_5.4.1.1.pet
service_pack_precise-5.4.1_TO_5.4.1.1.pet
service_pack-5.4.1_TO_5.4.1.1_precise.pet
service_pack-5.4.1_TO_5.4.1.1-precise.pet


service_pack.sh is able to extract the version information from the PET names.

The reason that this feature is probably a Good Thing, is that users won't have to monitor my blog or Forum to learn about Service Packs, they will be automatically informed when one is available, whenever the PPM is started.

This is a generic mechanism, it applies to all latest Woof-built pups, Upups, Dpups, Slackware pups, Mageia pups.

Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/0d9722d519


Posted on 25 Nov 2012, 20:04


Comments:

Posted on 25 Nov 2012, 20:37 by BarryK
Service Pack
Sorry, there was a typo in service_pack.sh, Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/faaeef0e52