[yum-cvs] yum/depsolve.py
Seth Vidal
skvidal at linux.duke.edu
Wed Jan 9 14:32:02 UTC 2008
yum/depsolve.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 07a1aabf76fcf9e8fd4e8c1081433f7a96ccba72
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Wed Jan 9 09:30:11 2008 -0500
get rid of the unnecessary call to pkg.pkgtup when pkg.arch is all that's needed
diff --git a/yum/depsolve.py b/yum/depsolve.py
index 9e0bfaa..529d3b9 100644
--- a/yum/depsolve.py
+++ b/yum/depsolve.py
@@ -626,8 +626,7 @@ class Depsolve(object):
pkgs = self.pkgSack.returnNewestByName(confpkg.name)
archs = {}
for pkg in pkgs:
- (n,a,e,v,r) = pkg.pkgtup
- archs[a] = pkg
+ archs[a] = pkg.arch
a = rpmUtils.arch.getBestArchFromList(archs.keys())
po = archs[a]
except Errors.PackageSackError:
More information about the Yum-cvs-commits
mailing list