[Rpm-maint] [rpm-software-management/rpm] BUG: $1 and $2 arguments passed to scriptlets go awry for renamed package upgrades (#474)

Jeff Johnson notifications at github.com
Mon Jul 23 10:30:57 UTC 2018


>From https://stackoverflow.com/questions/48070042/how-to-detect-upgrade-when-an-rpm-that-obsoletes-another-rpm-is-being-installed

The practice of adding a Provides: oldname to satisfy dependencies when renaming a package has unintended consequences for the package count arguments passed to scriptlets: the count is based on the package N, not the Provides: oldname.

Rather than trying to detect package renaming -- a rather rare event -- and adjust the arguments passed to scriptlets, I'd suggest that the better fix would be to devise a means to differentiate between erase-while-upgrading and erase-while-removing that is by far the most common need to test package counts.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/474
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180723/fe45c947/attachment.html>


More information about the Rpm-maint mailing list