[yum-commits] Branch 'yum-3_2_X' - yum/history.py
James Antill
james at osuosl.org
Mon Jan 18 13:52:21 UTC 2010
yum/history.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e28e0a6ad8d1f8cb84f4f291e5f4c770e1b60bc5
Author: James Antill <james at and.org>
Date: Mon Jan 18 08:50:45 2010 -0500
Fix yumdb.checksum_data access in history using yumdb. BZ 555928
Having checksum_type but not checksum_data is really weird though.
diff --git a/yum/history.py b/yum/history.py
index 5ef6960..8de7459 100644
--- a/yum/history.py
+++ b/yum/history.py
@@ -286,7 +286,7 @@ class YumHistory:
def _ipkg2pid(self, po):
csum = None
yumdb = po.yumdb_info
- if 'checksum_type' in yumdb and 'checksum_type' in yumdb:
+ if 'checksum_type' in yumdb and 'checksum_data' in yumdb:
csum = "%s:%s" % (yumdb.checksum_type, yumdb.checksum_data)
return self._pkgtup2pid(po.pkgtup, csum)
def pkg2pid(self, po):
More information about the Yum-commits
mailing list