mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-07 17:05:17 +01:00
Issue 1452
This commit is contained in:
parent
e4a0e0746b
commit
905d0295f6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user