[yum-git] Branch 'yum-3_2_X' - output.py

James Antill james at linux.duke.edu
Tue Sep 16 15:53:01 UTC 2008


 output.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 8aa8425eb4434e189a9fbd585a3b61571b58efe9
Author: James Antill <james at and.org>
Date:   Tue Sep 16 11:48:48 2008 -0400

    Include the indent in the column calculation for groupinfo -v

diff --git a/output.py b/output.py
index 95efac4..0e910d9 100644
--- a/output.py
+++ b/output.py
@@ -549,13 +549,14 @@ class YumOutput:
             ret.setdefault(pkg.name, []).append((apkg, ipkg))
         return ret
 
-    def _calcDataPkgColumns(self, data, pkg_names, pkg_names2pkgs):
+    def _calcDataPkgColumns(self, data, pkg_names, pkg_names2pkgs,
+                            indent='   '):
         for item in pkg_names:
             if item not in pkg_names2pkgs:
                 continue
             for (apkg, ipkg) in pkg_names2pkgs[item]:
                 pkg = ipkg or apkg
-                envra = len(str(pkg))
+                envra = len(str(pkg)) + len(indent)
                 rid   = len(pkg.repoid)
                 for (d, v) in (('envra', envra), ('rid', rid)):
                     data[d].setdefault(v, 0)



More information about the Yum-cvs-commits mailing list