[PATCH] yum: make transaction results available to plugins

Tim Lauridsen tim.lauridsen at googlemail.com
Mon Sep 1 18:20:55 UTC 2008


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




More information about the devel mailing list