mirror of https://gitlab.com/ita1024/waf.git
Issue 1452
This commit is contained in:
parent
e4a0e0746b
commit
905d0295f6
|
@ -557,7 +557,15 @@ class Context(ctx):
|
||||||
msg = str(result)
|
msg = str(result)
|
||||||
|
|
||||||
self.to_log(msg)
|
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=[]):
|
def load_special_tools(self, var, ban=[]):
|
||||||
global waf_dir
|
global waf_dir
|
||||||
|
|
Loading…
Reference in New Issue