[Rpm-maint] Pretrans scriptlets and file conflicts

Panu Matilainen pmatilai at laiskiainen.org
Fri Sep 28 12:30:16 UTC 2012


On 09/28/2012 02:58 PM, Michael Schroeder wrote:
>
> Hi Panu et al,
>
> I just noticed that pretrans scriptlets get run before the
> file dispositions are calculated. Isn't that a bit dangerous?
> It means that pretrans scriptlets get run even if the transaction
> isn't run at all because of a file conflict.

Yup, it's dangerous but also intentional: the reason is to allow 
%pretrans to be used for fixing up those directory <-> directory symlink 
replacements, and that needs to happen before the file disposition 
calculations. AFAIK permitting that was one of the main motivations for 
adding %pretrans in the first place.

	- Panu -


More information about the Rpm-maint mailing list