[yum-cvs] Branch 'yum-3_0_X' - yum/packageSack.py
Jeremy Katz
katzj at linux.duke.edu
Tue Aug 21 17:27:47 UTC 2007
yum/packageSack.py | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 60ed07c60877586dfe20894c8032a17f617ec6cb
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 f925b2a..e8cf78a 100644
--- a/yum/packageSack.py
+++ b/yum/packageSack.py
@@ -595,6 +595,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