---
 utils.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/utils.py b/utils.py
index 08b09fb..f0f87a3 100755
--- a/utils.py
+++ b/utils.py
@@ -415,7 +415,13 @@ class YumUtilBase(YumBaseCli):
                 self.logger.critical(prefix, msg.replace('\n', '\n' + 
prefix2nd))
             if not self.conf.skip_broken:
                 self.verbose_logger.info(_(" You could try using --skip-broken 
to work around the problem"))
-            if not self._rpmdb_warn_checks(out=self.verbose_logger.info, 
warn=False):
+            try:
+                probs = self._rpmdb_warn_checks(out=self.verbose_logger.info, 
warn=False)
+            except YumBaseError, e:
+                # This is mainly for PackageSackError from rpmdb.
+                self.verbose_logger.info(_(" Yum checks failed: %s"), 
exception2msg(e))
+                probs = []
+            if not probs:
                 self.verbose_logger.info(_(" You could try running: rpm -Va 
--nofiles --nodigest"))
             if self.unlock(): return 200
             return 1
-- 
1.7.4.4

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to