[yum-commits] Branch 'yum-3_2_X' - yum/__init__.py
Tim Lauridsen
timlau at osuosl.org
Thu Sep 17 15:05:20 UTC 2009
yum/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit bb1cb7faed4875251cb7104d9466c06fa66572b2
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date: Thu Sep 17 15:04:02 2009 +0200
skipbroken: make the missing obsoleted check don't scan all transaction member, but only the TS_OBSOLETING, TS_OBSOLETED ones
diff --git a/yum/__init__.py b/yum/__init__.py
index 6c27f50..79c9712 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -902,7 +902,7 @@ class YumBase(depsolve.Depsolve):
then the TS_OBSOLETED can get removed from the transaction
so we must make sure that they, exist and else create them
"""
- for txmbr in self.tsInfo:
+ for txmbr in self.tsInfo.getMembersWithState(None, [TS_OBSOLETING,TS_OBSOLETED]):
for pkg in txmbr.obsoletes:
if not self.tsInfo.exists(pkg.pkgtup):
obs = self.tsInfo.addObsoleted(pkg,txmbr.po)
More information about the Yum-commits
mailing list