From 066d841129e7df3ee5841ab9c433378d202402e2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 6 Jan 2008 20:22:03 +0000 Subject: Bug #204651 - Make repoman respect NOCOLOR=true. svn path=/main/trunk/; revision=9151 --- 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) -- cgit v1.2.3-1-g7c22