From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S4DUR-0004DP-BW for garchives@archives.gentoo.org; Sun, 04 Mar 2012 15:36:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CBB6E0785; Sun, 4 Mar 2012 15:36:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E3913E0785 for ; Sun, 4 Mar 2012 15:36:42 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BC11A1B4013 for ; Sun, 4 Mar 2012 15:36:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 86FBBE5401 for ; Sun, 4 Mar 2012 15:36:39 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1330875362.216ffc02a31cc4ee5c01c836def8d497ee5c5764.dol-sen@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/output.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 216ffc02a31cc4ee5c01c836def8d497ee5c5764 X-VCS-Branch: master Date: Sun, 4 Mar 2012 15:36:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 7bc935d0-667b-4a64-93cf-d8134fe38260 X-Archives-Hash: a600b62e15be0675d46ef2e58c767877 commit: 216ffc02a31cc4ee5c01c836def8d497ee5c5764 Author: Brian Dolbec gentoo org> AuthorDate: Sun Mar 4 15:36:02 2012 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sun Mar 4 15:36:02 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3D216ffc02 change to only wrap the '*' with the color, not the spaces around it. --- layman/output.py | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layman/output.py b/layman/output.py index 7b42b81..2fbeaaf 100644 --- a/layman/output.py +++ b/layman/output.py @@ -134,7 +134,7 @@ class Message(MessageBase): return =20 for i in info.split('\n'): - print >> self.std_out, self.color_func('green', ' * ') + i + print >> self.std_out, " %s %s" % (self.color_func('green',= '*'),i) =20 =20 def status (self, message, status, info =3D 'ignored'): @@ -148,7 +148,7 @@ class Message(MessageBase): return =20 for i in lines[0:-1]: - print >> self.std_out, self.color_func('green', ' * ') + i + print >> self.std_out, " %s %s" % (self.color_func('green', = '*'),i) =20 i =3D lines[-1] =20 @@ -162,8 +162,8 @@ class Message(MessageBase): else: result =3D '[' + self.color_func('yellow', info) + ']' =20 - print >> self.color_func('green', ' * ') + i + ' ' + \ - '.' * (58 - len(i)) + ' ' + result + print >> " %s %s %s %S" % (self.color_func('green', '*'), i, + ('.' * (58 - len(i))), result) =20 =20 def warn (self, warn, level =3D WARN_LEVEL): @@ -175,7 +175,7 @@ class Message(MessageBase): return =20 for i in warn.split('\n'): - print >> self.std_out, self.color_func('yellow', ' * ') + i + print >> self.std_out, " %s %s" % (self.color_func('yellow',= '*'),i) =20 =20 def error (self, error): @@ -189,7 +189,7 @@ class Message(MessageBase): # "layman -L |& less". sys.stdout.flush() self.error_out.flush() - print >> self.std_out, self.color_func('red', ' * ') + i + print >> self.std_out, " %s %s" % (self.color_func('red', '*= '), i) sys.stdout.flush() self.do_error_callback(error) =20