commit:     310c548e708f72ba25d66a423b679b24888ed863
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Mon May 18 18:52:45 2015 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Mon May 18 18:53:47 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=310c548e

bin/repoman: Use pformat and newlines to *DEPEND output for clarity bug 534022

X-Gentoo-Bug: 534022
X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=534022

 bin/repoman | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/bin/repoman b/bin/repoman
index b193ce5..7cb32ce 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -24,6 +24,7 @@ import time
 import platform
 from itertools import chain
 from stat import S_ISDIR
+from pprint import pformat
 
 try:
        from urllib.parse import urlparse
@@ -2396,14 +2397,14 @@ for x in effective_scanlist:
                                                        if not atoms:
                                                                continue
                                                        stats[mykey] += 1
-                                                       
fails[mykey].append("%s: %s: %s(%s) %s" % \
+                                                       
fails[mykey].append("%s: %s: %s(%s)\n%s" % \
                                                                (relative_path, 
mytype, keyword,
-                                                               prof, 
repr(atoms)))
+                                                               prof, 
pformat(atoms, indent=6)))
                                        else:
                                                stats[mykey] += 1
-                                               fails[mykey].append("%s: %s: 
%s(%s) %s" % \
+                                               fails[mykey].append("%s: %s: 
%s(%s)\n%s" % \
                                                        (relative_path, mytype, 
keyword,
-                                                       prof, repr(atoms)))
+                                                       prof, pformat(atoms, 
indent=6)))
 
                if not baddepsyntax and unknown_pkgs:
                        type_map = {}

Reply via email to