On Tue, Aug 25, 2015 at 10:22:42PM +0300, Alexander Bokovoy wrote: > > The flow above is not correct. Each scriptlet of the package is executed > when package is installed. In particular, there is no period of waiting > until end of whole transaction to start executing %posttrans scriptlet of > a specific package. RPM only guarantees you that %posttrans scriptlet is > executed as the last thing of this package intall, after all > %post/%postun scriptlets were executed for this package and all triggers > for affected packages were executed.
This went against my undertanding of %posttrans, so I asked rpm maintainer and he confirmed that %posttrans scriptlets are executed as the last thing in the transaction. I might be misunderstanding what you say but I'd say that there actually is a period of waiting / postponing execution of %posttrans scriptlets of all packages until the end of the transaction. -- Jan Pazdziora Senior Principal Software Engineer, Identity Management Engineering, Red Hat -- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code