[yum-commits] Branch 'yum-3_2_X' - yum/packages.py
James Antill
james at osuosl.org
Fri Feb 27 22:40:57 UTC 2009
yum/packages.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit b5bddd08732cf4607ff247380a5543c866095ad2
Author: James Antill <james at and.org>
Date: Fri Feb 27 17:40:49 2009 -0500
Fix verifyLocalPkg() to handle pkgs with no checksum data
diff --git a/yum/packages.py b/yum/packages.py
index 71ed65b..89a9d46 100644
--- a/yum/packages.py
+++ b/yum/packages.py
@@ -660,8 +660,11 @@ class YumAvailablePackage(PackageObject, RpmBase):
def verifyLocalPkg(self):
"""check the package checksum vs the localPkg
return True if pkg is good, False if not"""
-
- (csum_type, csum) = self.returnIdSum()
+
+ checksum_data = self.returnIdSum()
+ if checksum_data is None:
+ return False
+ (csum_type, csum) = checksum_data
try:
filesum = misc.checksum(csum_type, self.localPkg())
More information about the Yum-commits
mailing list