commit: 8f03fb3708bc3e1f2c0f7f3b1ba7832e415b09c9 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Thu Sep 24 16:18:04 2015 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> 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 <mgorny <AT> 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()