[yum-commits] Branch 'yum-3_2_X' - yum/__init__.py

James Antill james at osuosl.org
Thu Jan 14 23:10:54 UTC 2010


 yum/__init__.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 255299b7b32bc5c5e09434271e8f97ae00eaea4f
Author: James Antill <james at and.org>
Date:   Thu Jan 14 14:44:41 2010 -0500

    Sort output in printTransaction() -- skip-broken debug output

diff --git a/yum/__init__.py b/yum/__init__.py
index b93dd0c..1085f21 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1043,10 +1043,10 @@ class YumBase(depsolve.Depsolve):
                   TS_UPDATED    : "updated"}
 
         self.verbose_logger.log(logginglevels.DEBUG_2,"TSINFO: Current Transaction : %i member(s) " % len(self.tsInfo))
-        for txmbr in self.tsInfo:
+        for txmbr in sorted(self.tsInfo):
             msg = "  %-11s : %s " % (state[txmbr.output_state],txmbr.po)
             self.verbose_logger.log(logginglevels.DEBUG_2, msg)
-            for po,rel in txmbr.relatedto:
+            for po,rel in sorted(txmbr.relatedto):
                 msg = "                   %s : %s" % (rel,po)
                 self.verbose_logger.log(logginglevels.DEBUG_2, msg)
                 


More information about the Yum-commits mailing list