On Mon, Aug 30, 2021 at 11:19 AM Martin Wilck <mwilck@suse.com> wrote:
Can anyone tell what exactly happens if an rpm transaction contains both calls to %posttrans and %transfiletriggerin? Is there any reliable order in which these scripts are called in the posttrans stage?
According to https://github.com/rpm-software-management/rpm/blob/fd57fc716231c8296d340fdb... the order is %pretrans %transfiletriggerun transaction itself %posttrans %transfiletriggerpostun %transfiletriggerin
Or putting it differently, is there any way to make sure the %posttrans script of package A runs after the %transfiletriggerin of package B, or vice versa?
It does not look to be possible. %posttrans and %transfiletriggerin are executed in two separate steps sequentially.