From: Zac Medico Date: Sun, 6 Jan 2008 20:22:03 +0000 (-0000) Subject: Bug #204651 - Make repoman respect NOCOLOR=true. X-Git-Tag: v2.2_pre1~71 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=066d841129e7df3ee5841ab9c433378d202402e2;p=portage.git Bug #204651 - Make repoman respect NOCOLOR=true. svn path=/main/trunk/; revision=9151 --- 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)