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 59DA61387FD for ; Sun, 30 Mar 2014 11:55:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97567E0AE1; Sun, 30 Mar 2014 11:55:15 +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 10D9CE09D7 for ; Sun, 30 Mar 2014 11:55:15 +0000 (UTC) Received: from pomiot.lan (77-254-69-105.adsl.inetia.pl [77.254.69.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 1C06C33FC8D; Sun, 30 Mar 2014 11:55:12 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-portage-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-portage-dev] [PATCH] Sort repoman check results in output Date: Sun, 30 Mar 2014 13:55:05 +0200 Message-Id: <1396180505-13208-1-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 1.9.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: 74e98eed-7b7d-4545-b18d-9287a5cdedd9 X-Archives-Hash: b88cfad82a33054fa5ebe316ee265ede 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") -- 1.9.1