Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/layman:master commit in: layman/
Date: Sun, 04 Mar 2012 15:36:51
Message-Id: 1330875362.216ffc02a31cc4ee5c01c836def8d497ee5c5764.dol-sen@gentoo
1 commit: 216ffc02a31cc4ee5c01c836def8d497ee5c5764
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 4 15:36:02 2012 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Sun Mar 4 15:36:02 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=216ffc02
7
8 change to only wrap the '*' with the color, not the spaces around it.
9
10 ---
11 layman/output.py | 12 ++++++------
12 1 files changed, 6 insertions(+), 6 deletions(-)
13
14 diff --git a/layman/output.py b/layman/output.py
15 index 7b42b81..2fbeaaf 100644
16 --- a/layman/output.py
17 +++ b/layman/output.py
18 @@ -134,7 +134,7 @@ class Message(MessageBase):
19 return
20
21 for i in info.split('\n'):
22 - print >> self.std_out, self.color_func('green', ' * ') + i
23 + print >> self.std_out, " %s %s" % (self.color_func('green', '*'),i)
24
25
26 def status (self, message, status, info = 'ignored'):
27 @@ -148,7 +148,7 @@ class Message(MessageBase):
28 return
29
30 for i in lines[0:-1]:
31 - print >> self.std_out, self.color_func('green', ' * ') + i
32 + print >> self.std_out, " %s %s" % (self.color_func('green', '*'),i)
33
34 i = lines[-1]
35
36 @@ -162,8 +162,8 @@ class Message(MessageBase):
37 else:
38 result = '[' + self.color_func('yellow', info) + ']'
39
40 - print >> self.color_func('green', ' * ') + i + ' ' + \
41 - '.' * (58 - len(i)) + ' ' + result
42 + print >> " %s %s %s %S" % (self.color_func('green', '*'), i,
43 + ('.' * (58 - len(i))), result)
44
45
46 def warn (self, warn, level = WARN_LEVEL):
47 @@ -175,7 +175,7 @@ class Message(MessageBase):
48 return
49
50 for i in warn.split('\n'):
51 - print >> self.std_out, self.color_func('yellow', ' * ') + i
52 + print >> self.std_out, " %s %s" % (self.color_func('yellow', '*'),i)
53
54
55 def error (self, error):
56 @@ -189,7 +189,7 @@ class Message(MessageBase):
57 # "layman -L |& less".
58 sys.stdout.flush()
59 self.error_out.flush()
60 - print >> self.std_out, self.color_func('red', ' * ') + i
61 + print >> self.std_out, " %s %s" % (self.color_func('red', '*'), i)
62 sys.stdout.flush()
63 self.do_error_callback(error)