summaryrefslogtreecommitdiffstats
path: root/autowaf.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-26 11:02:01 -0500
committerDavid Robillard <d@drobilla.net>2017-12-29 10:57:47 -0500
commitcde251bb35f7f0df65167e55bce073d4d8edc0df (patch)
tree946c1e3039701b847dec5b0d849d9a6856de6c93 /autowaf.py
parent645167a48682a3c5028729268dabac4e6c970e6b (diff)
downloadautowaf-cde251bb35f7f0df65167e55bce073d4d8edc0df.tar.gz
autowaf-cde251bb35f7f0df65167e55bce073d4d8edc0df.tar.bz2
autowaf-cde251bb35f7f0df65167e55bce073d4d8edc0df.zip
Make summary style more consistent
Diffstat (limited to 'autowaf.py')
-rw-r--r--autowaf.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/autowaf.py b/autowaf.py
index 9ad8f0a..cdc3eb3 100644
--- a/autowaf.py
+++ b/autowaf.py
@@ -380,17 +380,20 @@ def set_line_just(conf, width):
conf.line_just = line_just
def display_header(title):
- Logs.pprint('BOLD', title)
+ global g_is_child
+ if g_is_child:
+ Logs.pprint('BOLD', title)
def display_msg(conf, msg, status = None, color = None):
color = 'CYAN'
- if type(status) == bool and status or status == "True":
- color = 'GREEN'
+ if type(status) == bool and status:
+ color = 'GREEN'
+ status = 'yes'
elif type(status) == bool and not status or status == "False":
- color = 'YELLOW'
- Logs.pprint('BOLD', " *", sep='')
- Logs.pprint('NORMAL', "%s" % msg.ljust(conf.line_just - 3), sep='')
- Logs.pprint('BOLD', ":", sep='')
+ color = 'YELLOW'
+ status = 'no'
+ Logs.pprint('NORMAL', ' %s' % msg.ljust(conf.line_just - 2), sep='')
+ Logs.pprint('NORMAL', ":", sep='')
Logs.pprint(color, status)
def link_flags(env, lib):