[Yum-devel] [PATCH] Don't do rpmdb checks, in version, with no history (as it's root only now).

James Antill james at and.org
Wed May 5 20:22:10 UTC 2010


---
 yumcommands.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yumcommands.py b/yumcommands.py
index 05f1296..dcf72db 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -1229,7 +1229,7 @@ class VersionCommand(YumCommand):
                 lastdbv = base.history.last()
                 if lastdbv is not None:
                     lastdbv = lastdbv.end_rpmdbversion
-                if lastdbv is None or data[0] != lastdbv:
+                if lastdbv is not None and data[0] != lastdbv:
                     base._rpmdb_warn_checks(warn=lastdbv is not None)
                 if vcmd not in ('group-installed', 'group-all'):
                     cols.append(("%s %s/%s" % (_("Installed:"), rel, ba),
-- 
1.7.0.1



More information about the Yum-devel mailing list