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 9D781138A1A for ; Wed, 11 Feb 2015 08:00:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C7A8E0854; Wed, 11 Feb 2015 08:00:06 +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 E3D6DE0854 for ; Wed, 11 Feb 2015 08:00:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7E8AC34077B for ; Wed, 11 Feb 2015 08:00:04 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7283211826 for ; Wed, 11 Feb 2015 08:00:02 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1423641507.8482a88e8dfa3acf67d9bf4df4d3588ed993bb96.mgorny@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: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8482a88e8dfa3acf67d9bf4df4d3588ed993bb96 X-VCS-Branch: master Date: Wed, 11 Feb 2015 08:00:02 +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: a9e6285d-342e-4f26-875e-e7f99d90b4d9 X-Archives-Hash: 32494792d7b33401a3233fcef30e6cf6 commit: 8482a88e8dfa3acf67d9bf4df4d3588ed993bb96 Author: Michał Górny gentoo org> AuthorDate: Tue Feb 10 11:38:07 2015 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Feb 11 07:58:27 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=8482a88e repoman: mark errors with explicit '[fatal'] Mark fatal check results with explicit '[fatal]' marker to ease grepping and provide the additional information on non-colorful terminals as well. --- pym/repoman/utilities.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index 415825e..a2535f0 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -310,11 +310,16 @@ def format_qa_output(formatter, stats, fails, dofull, dofail, options, qawarning # we only want key value pairs where value > 0 for category, number in \ filter(lambda myitem: myitem[1] > 0, sorted(stats.items())): - formatter.add_literal_data(" " + category.ljust(30)) + formatter.add_literal_data(" " + category) + spacing_width = 30 - len(category) if category in qawarnings: formatter.push_style("WARN") else: formatter.push_style("BAD") + formatter.add_literal_data(" [fatal]") + spacing_width -= 8 + + formatter.add_literal_data(" " * spacing_width) formatter.add_literal_data("%s" % number) formatter.pop_style() formatter.add_line_break()