yifengyou / rpms / yum

Forked from rpms/yum 3 years ago
Clone

Blame SOURCES/BZ-1327962-conduit-typo.patch

5e9bef
commit 4474b17efc7acaa57217389cccdc36d706fdfae9
5e9bef
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
5e9bef
Date:   Fri May 6 11:08:14 2016 +0200
5e9bef
5e9bef
    Fix a typo in exclude_updates().
5e9bef
5e9bef
diff --git a/yum/updateinfo.py b/yum/updateinfo.py
5e9bef
index dad6996..2b39330 100644
5e9bef
--- a/yum/updateinfo.py
5e9bef
+++ b/yum/updateinfo.py
5e9bef
@@ -407,7 +407,7 @@ def exclude_updates(base, filters=None):
5e9bef
     upds = base.doPackageLists(pkgnarrow='obsoletes')
5e9bef
     tot += len(upds.obsoletes)
5e9bef
 
5e9bef
-    pkgs = conduit.getPackages()
5e9bef
+    pkgs = base.pkgSack.returnPackages()
5e9bef
     name2tup = _get_name2oldpkgtup(base)
5e9bef
     
5e9bef
     cnt = 0