[csw-maintainers] Problem with "alternatives" on updates

Ben Walton bwalton at opencsw.org
Thu Feb 11 13:00:21 CET 2010


Excerpts from Dagobert Michelsen's message of Thu Feb 11 05:03:15 -0500 2010:

Hi Dago,

> > postuninstall scriptlet (using /bin/sh):
> > if [ "$1" -ge "1" ]; then

This is the key to the script here.  The rpm system has the notion of
upgrades and when $1 -ne "0", the script can assume it was upgraded
and that the postuninstall script is being triggered in that context.
It's not as nice as the dpkg version, but it gets the job done.

Hopefully that clears it up, although it won't make it easier for us,
as we only have an upgrade notion when wrapped by pkgutil/pkg-get.

Thanks
-Ben
-- 
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20100211/3224f88b/attachment.asc>


More information about the maintainers mailing list