Am Tuesday 30 November 2010 17:04:07 schrieb Matthias Andree: > [resending after having subscribed to list] > > Greetings, > > the realcrypt RPM scriptlets don't take upgrading into account, and will > deinstall the sudoers/groups after an upgrade with zypper, as though the > package had been deinstalled (which it hasn't). > > Reason is that the scriptlets do not check $1 to figure how many versions > of the package are installed. > > Instructions: <http://fedoraproject.org/wiki/Packaging/ScriptletSnippets> > (also apply to openSUSE) > > > IOW, the whole %postun scriptlet should be (note single = here, double == > is an unnecessary non-portable bashism) > > %postun > if [ "$1" = 0 ] ; then > # original scriptlet follows > echo 'Removing group realcrypt...' > /usr/sbin/groupdel realcrypt &>/dev/null || : > echo 'Removing entry in /etc/sudoers...' > sed -i '/%realcrypt/d' /etc/sudoers > # end of original scriptlet > fi > > > The postinstall script seems safe at first superficial glance. > > (I can correspond in German and English, so pick whatever is conventional > for the list.)
Thanks for the bug report, the issue is "about to be fixed". The "about to be" means, that AFAIK the %postun will be run from the package previously installed, so one will need two updates until the change takes effect. Right now, I checked in a version without any %postun, which should be available soon, just to be sure there is no "bad" postun in the installed version. I will check in another package with the fixed %postun in a few days, hoping that most users will have received this "intermediate" update by then. Greetings, AK
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Packman mailing list [email protected] http://lists.links2linux.de/cgi-bin/mailman/listinfo/packman
