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:
Paul Eggleton 2015-09-22 17:21:25 +01:00 committed by Richard Purdie
parent ae788fbd46
commit 5d1a117f44
1 changed files with 1 additions and 1 deletions

View File

@ -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