[PATCH] yum: make transaction results available to plugins

Xavier Toth txtoth at gmail.com
Tue Sep 2 13:42:49 UTC 2008


On Mon, Sep 1, 2008 at 1:20 PM, Tim Lauridsen
<tim.lauridsen at googlemail.com> wrote:
> Xavier Toth wrote:
>>
>> I have a number of rpms that install SELinux policy modules during the
>> post install and I want yum to exit if there is any problem. I've
>> written a plugin with a posttrans method that examines the result and
>> exits if there was any problem. If there is another way to do this I'd
>> be happy to hear about it.
>>
>
> def postresolve_hook(conduit):
>    txmbrs = conduit.getTsInfo().getMembers()
>    # Do your actions on txmbrs
>
>
> This shoud give you the result of the transaction after depsolve.
>
> Tim
>
> --
> fedora-devel-list mailing list
> fedora-devel-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-devel-list
>

The post install script has not been run at this point so this does
not address the issue I have.




More information about the fedora-devel-list mailing list