[Rpm-maint] [rpm-software-management/rpm] Fix %posttrans argument on upgrade (PR #2176)

Panu Matilainen notifications at github.com
Thu Sep 8 07:30:00 UTC 2022


Packages need to be able to differentiate between install and upgrade scenarios, seems commit ab069ec876639d46d12dd76dad54fd8fb762e43d with half the lights out...

As %posttrans happens after all the excitement, with the erasure elements already executed, so the installed package count cannot be used to differentiate between install and upgrade. So we need to find it out the hard way: see if there's an erasure element that depends on this package.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/2176

-- Commit Summary --

  * Fix %posttrans argument on upgrade

-- File Changes --

    M lib/psm.c (17)
    M tests/rpmscript.at (4)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/2176.patch
https://github.com/rpm-software-management/rpm/pull/2176.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2176
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/2176 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220908/8ad39924/attachment.html>


More information about the Rpm-maint mailing list