summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2012-03-04 07:36:02 -0800
committerBrian Dolbec <dolsen@gentoo.org>2012-03-04 07:36:02 -0800
commit216ffc02a31cc4ee5c01c836def8d497ee5c5764 (patch)
treeae2f5697d45d78f4c5404f48bb6bfdb2f0938e4d
parent77fd9c78984df218d33520c6dce7a8a0c630c456 (diff)
downloadlayman-216ffc02a31cc4ee5c01c836def8d497ee5c5764.tar.gz
layman-216ffc02a31cc4ee5c01c836def8d497ee5c5764.tar.bz2
layman-216ffc02a31cc4ee5c01c836def8d497ee5c5764.zip
change to only wrap the '*' with the color, not the spaces around it.
-rw-r--r--layman/output.py12
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
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)
def status (self, message, status, info = 'ignored'):
@@ -148,7 +148,7 @@ class Message(MessageBase):
return
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)
i = lines[-1]
@@ -162,8 +162,8 @@ class Message(MessageBase):
else:
result = '[' + self.color_func('yellow', info) + ']'
- print >> self.color_func('green', ' * ') + i + ' ' + \
- '.' * (58 - len(i)) + ' ' + result
+ print >> " %s %s %s %S" % (self.color_func('green', '*'), i,
+ ('.' * (58 - len(i))), result)
def warn (self, warn, level = WARN_LEVEL):
@@ -175,7 +175,7 @@ class Message(MessageBase):
return
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)
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)