[Rpm-maint] [PATCH] "%post -p /sbin/ldconfig" wrongly skipped

Pixel pixel at mandriva.com
Wed Apr 16 14:21:07 UTC 2008


Panu Matilainen <pmatilai at redhat.com> writes:

[...]

> The ldconfig hackery in rpm is going away sooner or later, what I want to see
> is some more generic mechanism for packages to queue actions to happen at end
> of the transaction. Things like gtk-update-icon-cache only need running once,
> so packages just need a way to flag "please run <foo> for me before heading
> home." and for these, rpm would only run each unique command once after the
> transaction is finished (%posttrans and all).

what about running "uniq" on each all %posttrans scripts? that way
it's easy to avoid duplication.

only pb i see is currently one can't have more than one %posttrans,
whereas running "uniq" would need nicely precise %posttrans like:

%posttrans -p /bin/foo

%posttrans -p /bin/bar

instead of

%posttrans
/bin/foo
/bin/bar




More information about the Rpm-maint mailing list