[Yum-devel] [PATCH 1/4] When we call _deal_with_bad_rpmdbcache(), due to a package ... show the pkg.

James Antill james at and.org
Thu Jul 14 15:45:37 UTC 2011


---
 yum/rpmsack.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/yum/rpmsack.py b/yum/rpmsack.py
index 9717912..ef6fbd5 100644
--- a/yum/rpmsack.py
+++ b/yum/rpmsack.py
@@ -375,7 +375,8 @@ class RPMDBPackageSack(PackageSackBase):
             pkg = self.searchNevra(n, e, v, r, a)
             if not pkg:
                 # Wibble?
-                self._deal_with_bad_rpmdbcache("dCDPT(pkg checksums)")
+                self._deal_with_bad_rpmdbcache("dCDPT(pkg checksums): %s" %
+                                               txmbr)
                 continue
 
             pkg = pkg[0]
@@ -1013,7 +1014,8 @@ class RPMDBPackageSack(PackageSackBase):
             (n, a, e, v, r) = pkgtup
             pkg = self.searchNevra(n, e, v, r, a)
             if not pkg:
-                self._deal_with_bad_rpmdbcache("pkg checksums")
+                self._deal_with_bad_rpmdbcache("pkg checksums: %s-%s:%s-%s.%s" %
+                                               (n, e, v, r, a))
                 continue
             pkg = pkg[0]
             (T, D) = checksum_data[pkgtup]
-- 
1.7.5.4



More information about the Yum-devel mailing list