[yum-commits] plugins/post-transaction-actions

zpavlas at osuosl.org zpavlas at osuosl.org
Wed Jan 8 15:41:14 UTC 2014


 plugins/post-transaction-actions/post-transaction-actions.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 069ccd1ead17ac19be9529f2eea1eaad1ce62fe5
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date:   Wed Jan 8 16:36:58 2014 +0100

    post-transaction-actions: no rpmdb lookup of removed pkgs. BZ 1045494
    
    The "if" condition was clearly wrong, and we shouldn't proceed
    without defining "thispo", too.

diff --git a/plugins/post-transaction-actions/post-transaction-actions.py b/plugins/post-transaction-actions/post-transaction-actions.py
index b4da1ce..a9759ff 100644
--- a/plugins/post-transaction-actions/post-transaction-actions.py
+++ b/plugins/post-transaction-actions/post-transaction-actions.py
@@ -129,9 +129,10 @@ def posttrans_hook(conduit):
 
             for txmbr in pkgset:
                 matched = False
-                #print '%s - %s' % txmbr.name, txmbr.ts_state
-                if txmbr.po.state in TS_INSTALL_STATES:
+                if txmbr.output_state in TS_INSTALL_STATES:
                     thispo = _get_installed_po(rpmdb, txmbr.pkgtup)
+                else:
+                    continue
         
                 if not yum.misc.re_glob(a_k):
                     if a_k in thispo.filelist + thispo.dirlist + thispo.ghostlist:


More information about the Yum-commits mailing list