[yum-commits] Branch 'yum-3_2_X' - yum/packages.py
James Antill
james at osuosl.org
Mon Mar 30 13:35:09 UTC 2009
yum/packages.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit e9b3b0bf4632413f7f90533cc3b87c204a9c6f0e
Author: James Antill <james at and.org>
Date: Mon Mar 30 09:32:39 2009 -0400
Don't just use YumAvailablePackage.__init__ to setup _verify_local_pkg_cache,
because noone (YumAvailablePackageSqlite, etc.) calls that function.
diff --git a/yum/packages.py b/yum/packages.py
index efcf1db..f19b5f5 100644
--- a/yum/packages.py
+++ b/yum/packages.py
@@ -677,7 +677,8 @@ class YumAvailablePackage(PackageObject, RpmBase):
nst = os.stat(self.localPkg())
except OSError, e:
return False
- if self._verify_local_pkg_cache:
+ if (hasattr(self, '_verify_local_pkg_cache') and
+ self._verify_local_pkg_cache):
ost = self._verify_local_pkg_cache
if (ost.st_ino == nst.st_ino and
ost.st_dev == nst.st_dev and
More information about the Yum-commits
mailing list