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 4A9AD13881C for ; Thu, 24 Sep 2015 16:20:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B90B121C002; Thu, 24 Sep 2015 16:19:59 +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 641E221C002 for ; Thu, 24 Sep 2015 16:19:59 +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 4FF1D3406DD for ; Thu, 24 Sep 2015 16:19:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 92A321F5 for ; Thu, 24 Sep 2015 16:19:54 +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: <1443111484.8f03fb3708bc3e1f2c0f7f3b1ba7832e415b09c9.dolsen@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/qa_data.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 8f03fb3708bc3e1f2c0f7f3b1ba7832e415b09c9 X-VCS-Branch: master Date: Thu, 24 Sep 2015 16:19:54 +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: dc33ffc8-1563-4b4b-b268-f8842a3e0f24 X-Archives-Hash: 0dc4b8e397f6756a9f69f4f03bcee5e0 commit: 8f03fb3708bc3e1f2c0f7f3b1ba7832e415b09c9 Author: Brian Dolbec gentoo org> AuthorDate: Thu Sep 24 16:18:04 2015 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Thu Sep 24 16:18:04 2015 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=8f03fb37 repoman/qa_data.py: Re-apply mgorny's "mark errors with explicit '[fatal']" patch This patch was lost in the re-basing of the rewrite due to the code being moved to a new file. Commit: 8482a88e8dfa3acf67d9bf4df4d3588ed993bb96 Author: Michał Górny gentoo.org> (Tue 10 Feb 2015 03:38:07 AM PST) Subject: repoman: mark errors with explicit '[fatal'] pym/repoman/qa_data.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pym/repoman/qa_data.py b/pym/repoman/qa_data.py index 461b064..a68a53f 100644 --- a/pym/repoman/qa_data.py +++ b/pym/repoman/qa_data.py @@ -367,11 +367,16 @@ def format_qa_output( # we only want key value pairs where value > 0 for category in sorted(fails): number = len(fails[category]) - 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()