From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 65ABD1387FD for ; Fri, 4 Apr 2014 23:01:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6592E09ED; Fri, 4 Apr 2014 23:01:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BEB69E09E2 for ; Fri, 4 Apr 2014 23:01:11 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D75DC33F63D for ; Fri, 4 Apr 2014 23:01:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 9BE39188F4 for ; Fri, 4 Apr 2014 23:01:09 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1396652141.c5df3ce7eb311db6e5c860208f76de134c4e2eac.dol-sen@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/utilities.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: c5df3ce7eb311db6e5c860208f76de134c4e2eac X-VCS-Branch: master Date: Fri, 4 Apr 2014 23:01:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2113cc17-b300-4aa5-9ea5-144bc8c1a5cd X-Archives-Hash: 2b4ec483b3e15b3c949b8c20c86ef4b9 commit: c5df3ce7eb311db6e5c860208f76de134c4e2eac Author: Michał Górny gentoo org> AuthorDate: Sun Mar 30 11:55:05 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Fri Apr 4 22:55:41 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c5df3ce7 Sort repoman check results in output Currently, the check results are output in dict order which is implementation-defined. This makes it hard to compare results coming from two machines (Python versions). Instead, sort all the results lexically. --- pym/repoman/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index aec61fe..415825e 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -309,7 +309,7 @@ def format_qa_output(formatter, stats, fails, dofull, dofail, options, qawarning full = options.mode == 'full' # we only want key value pairs where value > 0 for category, number in \ - filter(lambda myitem: myitem[1] > 0, iter(stats.items())): + filter(lambda myitem: myitem[1] > 0, sorted(stats.items())): formatter.add_literal_data(" " + category.ljust(30)) if category in qawarnings: formatter.push_style("WARN")