[Rpm-maint] [rpm-software-management/rpm] File triggers run twice on package upgrade (Issue #4030)
Panu Matilainen
notifications at github.com
Fri Nov 7 10:59:25 UTC 2025
pmatilai left a comment (rpm-software-management/rpm#4030)
Heh, with a less chatty output for the test-suite, FILETRIGGERIN runs *three* times:
```
RPMTEST_CHECK([
runroot rpm -U \
/build/RPMS/noarch/parallel-2.0-1.noarch.rpm \
/build/RPMS/noarch/parallel-trigger-2.0-1.noarch.rpm
],
[0],
[parallel-trigger-1.0-1 TRANSFILETRIGGERUN 1 | 12
parallel-trigger-2.0-1 FILETRIGGERIN 2 1 | 12
parallel-trigger-1.0-1 FILETRIGGERIN 2 2 | 12
parallel-trigger-2.0-1 FILETRIGGERIN 2 2 | 12
parallel-trigger-2.0-1 FILETRIGGERPOSTUN 1 1 | 11
parallel-trigger-2.0-1 TRANSFILETRIGGERPOSTUN 1 | 0
parallel-trigger-2.0-1 TRANSFILETRIGGERIN 2 | 12
],
[])
```
And this is the "original case" for the ticket, with %filetriggerpostun running twice, but also %filetriggerin running twice, something that's not visible in the original report:
```
RPMTEST_CHECK([
runroot rpm -U \
/build/RPMS/noarch/parallel-trigger-3.0-1.noarch.rpm \
/build/RPMS/noarch/parallel-3.0-1.noarch.rpm
],
[0],
[parallel-trigger-2.0-1 TRANSFILETRIGGERUN 1 | 12
parallel-trigger-2.0-1 FILETRIGGERIN 1 2 | 12
parallel-trigger-3.0-1 FILETRIGGERIN 2 2 | 24
parallel-trigger-2.0-1 FILETRIGGERPOSTUN 2 1 | 11
parallel-trigger-3.0-1 FILETRIGGERPOSTUN 2 1 | 11
parallel-trigger-3.0-1 TRANSFILETRIGGERPOSTUN 1 | 0
parallel-trigger-3.0-1 TRANSFILETRIGGERIN 2 | 12
],
[])
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4030#issuecomment-3501880105
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/4030/3501880105 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251107/34f03078/attachment.htm>
More information about the Rpm-maint
mailing list