[oe-commits] Paul Eggleton : devtool: add: ensure --color= never turns off recipetool colour output
git at git.openembedded.org
git at git.openembedded.org
Tue Sep 22 17:14:22 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 670bd063a5e0cdf89ea8d1f763af980d7e63d38a
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=670bd063a5e0cdf89ea8d1f763af980d7e63d38a
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date: Tue Sep 22 17:21:25 2015 +0100
devtool: add: ensure --color=never turns off recipetool colour output
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/lib/devtool/standard.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 018ef2a..ec21b3c 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
More information about the Openembedded-commits
mailing list