[yum-commits] Branch 'yum-3_2_X' - docs/yum.8 output.py

James Antill james at osuosl.org
Tue Mar 15 19:17:22 UTC 2011


 docs/yum.8 |    5 ++++-
 output.py  |    4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 545866619236e3fa3eca9184d9e2b71b8ddb1b19
Author: James Antill <james at and.org>
Date:   Tue Mar 15 15:17:14 2011 -0400

    Add sorts to deplist output, and add docs.

diff --git a/docs/yum.8 b/docs/yum.8
index 60fa2ea..360a976 100644
--- a/docs/yum.8
+++ b/docs/yum.8
@@ -253,7 +253,10 @@ on groups, files, provides, filelists and rpm files just like the "install" comm
 .IP
 .IP "\fBdeplist\fP"
 Produces a list of all dependencies and what packages provide those
-dependencies for the given packages.
+dependencies for the given packages. As of 3.2.30 it now just shows the latest
+version of each package that matches (this can be changed by
+using --showduplicates) and it only shows the newest providers (which can be
+changed by using --verbose).
 .IP
 .IP "\fBrepolist\fP"
 Produces a list of configured repositories. The default is to list all
diff --git a/output.py b/output.py
index e61cca9..85b21f8 100755
--- a/output.py
+++ b/output.py
@@ -810,13 +810,13 @@ class YumOutput:
         """take a list of findDeps results and 'pretty print' the output"""
         
         verb = self.verbose_logger.isEnabledFor(logginglevels.DEBUG_3)
-        for pkg in results:
+        for pkg in sorted(results):
             print _("package: %s") % pkg.compactPrint()
             if len(results[pkg]) == 0:
                 print _("  No dependencies for this package")
                 continue
 
-            for req in results[pkg]:
+            for req in sorted(results[pkg]):
                 reqlist = results[pkg][req] 
                 print _("  dependency: %s") % prco_tuple_to_string(req)
                 if not reqlist:


More information about the Yum-commits mailing list