Re: [PATCH] yum: make transaction results available to plugins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux