[Rpm-maint] [rpm-software-management/rpm] Fix spurious %transfiletriggerpostun execution (RhBug:2023311) (PR #1830)
Panu Matilainen
notifications at github.com
Tue Nov 16 10:10:27 UTC 2021
If a package has multiple %transfiletriggerpostun triggers, any one
of them matching would cause all of them to run, due to disconnect
in the intel gathering stage: we'd gather all the headers with matching
files into a lump, and then add any postun triggers found in them,
but this loses the triggering file information and causes all postuns
to run.
The triggers need to be added while looping over the file matches,
like runFileTriggers() does. Doing so actually simplifies the code.
These should really be unified to use the same code, but leaving
that exercise to another rainy day.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/1830
-- Commit Summary --
* Fix spurious %transfiletriggerpostun execution (RhBug:2023311)
-- File Changes --
M lib/rpmtriggers.c (64)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/1830.patch
https://github.com/rpm-software-management/rpm/pull/1830.diff
--
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/pull/1830
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20211116/47c463e3/attachment.html>
More information about the Rpm-maint
mailing list