[yum-commits] plugins/verify

James Antill james at osuosl.org
Thu Sep 17 14:57:10 UTC 2009


 plugins/verify/verify.py |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit a18c124fe7f55ab4ef7bd191150f60767c6c8aa4
Author: James Antill <james at and.org>
Date:   Thu Sep 17 10:56:49 2009 -0400

    Show size in bytes, if human units == (BZ 520067)

diff --git a/plugins/verify/verify.py b/plugins/verify/verify.py
index da2ce0b..ef38e7f 100644
--- a/plugins/verify/verify.py
+++ b/plugins/verify/verify.py
@@ -274,6 +274,10 @@ Verify packages and display data on bad verifications"""
             if problem.type == 'size':
                 cv = "%*s" % (5, base.format_number(cv))
                 ov = "%*s" % (5, base.format_number(ov))
+                if cv == ov: # ignore human units, so we can see the diff.
+                    cv = "%*s B" % (12, str(problem.disk_value))
+                    ov = "%*s B" % (12, str(problem.database_value))
+
             (hib, hie) = self._mode_except(base, 'new', problem, _verify_nnohi)
             msg("        Current:  " + hib + cv + hie)
             (hib, hie) = self._mode_except(base, 'old', problem, _verify_onohi)


More information about the Yum-commits mailing list