[yum-cvs] yum/packageSack.py
Jeremy Katz
katzj at linux.duke.edu
Tue Aug 21 16:02:38 UTC 2007
yum/packageSack.py | 1 +
1 file changed, 1 insertion(+)
New commits:
commit af0e27d3b3d0ba861982d0cdeb99f7ecc0141b1c
Author: Jeremy Katz <katzj at redhat.com>
Date: Tue Aug 21 11:59:56 2007 -0400
ensure we have indexes before using self.nevra. otherwise, we can
get tracebacks from people trying to install gcc on x86_64 when there's
an updated glibc available (and other cases too, but that's the easy trigger
for this)
diff --git a/yum/packageSack.py b/yum/packageSack.py
index 693956b..dc04d8f 100644
--- a/yum/packageSack.py
+++ b/yum/packageSack.py
@@ -647,6 +647,7 @@ class PackageSack(PackageSackBase):
# If naTup is set, only iterate through packages that match that
# name
if (naTup):
+ self._checkIndexes(failure='build')
where = self.nevra.get((naTup[0],None,None,None,None))
if (not where):
raise PackageSackError, 'No Package Matching %s.%s' % naTup
More information about the Yum-cvs-commits
mailing list