2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2025-01-07 17:05:17 +01:00

Issue 1452

This commit is contained in:
Thomas Nagy 2014-05-17 00:11:34 +02:00
parent e4a0e0746b
commit 905d0295f6
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -557,7 +557,15 @@ class Context(ctx):
msg = str(result)
self.to_log(msg)
Logs.pprint(kw.get('color', defcolor), msg)
try:
color = kw['color']
except KeyError:
if len(k) > 1 and k[1] in Logs.colors_lst:
# compatibility waf 1.7
color = k[1]
else:
color = defcolor
Logs.pprint(color, msg)
def load_special_tools(self, var, ban=[]):
global waf_dir