devtool: add: ensure --color=never turns off recipetool colour output
(From OE-Core rev: 670bd063a5e0cdf89ea8d1f763af980d7e63d38a) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
ae788fbd46
commit
5d1a117f44
|
@ -82,7 +82,7 @@ def add(args, config, basepath, workspace):
|
|||
else:
|
||||
bp = args.recipename
|
||||
recipefile = os.path.join(recipedir, "%s.bb" % bp)
|
||||
if sys.stdout.isatty():
|
||||
if args.color == 'auto' and sys.stdout.isatty():
|
||||
color = 'always'
|
||||
else:
|
||||
color = args.color
|
||||
|
|
Loading…
Reference in New Issue