From c57bf8be9bb48d8c47e7377585a2e74b5485571e Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 7 Jan 2008 20:59:07 +0000 Subject: [PATCH] Merged from trunk 9150:9151 | 9151 | Bug #204651 - Make repoman respect NOCOLOR=true. | | zmedico | | svn path=/main/branches/prefix/; revision=9154 --- pym/portage/output.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/output.py b/pym/portage/output.py index 148fddd0f..c491897f4 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -331,7 +331,8 @@ class ConsoleStyleFile(object): self._styles = styles def write(self, s): - if self._styles: + global havecolor + if havecolor and self._styles: for style in self._styles: self._file.write(codes[style]) self._file.write(s) -- 2.26.2