[Yum-devel] [PATCH] Sort output in printTransaction() -- skip-broken debug output

Seth Vidal skvidal at fedoraproject.org
Thu Jan 14 22:21:27 UTC 2010



On Thu, 14 Jan 2010, James Antill wrote:

> ---
> yum/__init__.py |    4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> 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)
>
> -- 
> 1.6.5.2

ACK

-sv



More information about the Yum-devel mailing list