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
1 changed files with 9 additions and 1 deletions

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