[Rpm-maint] [rpm-software-management/rpm] Psmpre and psmpost plugin callbacks executed multiple times per package (#1254)

Panu Matilainen notifications at github.com
Fri Jun 5 07:18:47 UTC 2020


The other thing with these hooks is that they're prone to misuse anyway. It's easy to end up thinking psmpost means package is all set and done, when it's often not the case: updates are not complete until the erasure part has also executed, and if the package has or takes part in post-trans scriptlets/triggers it's not really ready until the end of the transaction. 

We should actually have data structures to track the state of a package as it goes through the transaction machinery, an API to get that state, and maybe plugin notifications on change. It's a bit hysterical that even rpm itself doesn't actually know when a package has been fully installed, except for coming out of rpmtsRun().

That sort of thing is probably necessary if we ever want to separate scriptlet execution from unpacking as well. 

-- 
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/1254#issuecomment-639304457
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200605/c9904c4f/attachment.html>


More information about the Rpm-maint mailing list