From: Paul Eggleton Date: Tue, 22 Sep 2015 16:21:25 +0000 (+0100) Subject: devtool: add: ensure --color=never turns off recipetool colour output X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~28838 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=670bd063a5e0cdf89ea8d1f763af980d7e63d38a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git devtool: add: ensure --color=never turns off recipetool colour output Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 018ef2a9873..ec21b3c1399 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py @@ -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