poldek hooks

Patryk Zawadzki patrys at pld-linux.org
Tue Aug 23 16:54:14 CEST 2011

On Tue, Aug 23, 2011 at 4:44 PM, Caleb Maclennan <caleb at pld-linux.org> wrote:
> Does poldek offer any hooks or way to trigger actions at any point?
> For example are there pre/post transaction hooks that I could modify
> to run something before and/or after any rpm action is taken? How
> about an "on exit if any package installed / upgraded / uninstalled"
> during the lifetime of the process? If so where is the best place to
> find documentation on this?

AFAIK, no.

> On a related note, is it possible to globally add something to the rpm
> %pre/%post/%preun/%postun macros?

You can inject stuff at spec preprocessing time but that's not
something we usually do. If you're only interested in a particular
group of packages, consider faking install-time expansion by calling a
common shell script in %post or %posttrans.

Patryk Zawadzki
I solve problems.

More information about the pld-devel-en mailing list