summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-06 20:22:03 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-06 20:22:03 +0000
commit066d841129e7df3ee5841ab9c433378d202402e2 (patch)
tree2e0baf5c29d30a0dbb5fbb25f5245948385182f6 /pym
parent9eef91b3473080981d9157463df125a5be2b6455 (diff)
downloadportage-066d841129e7df3ee5841ab9c433378d202402e2.tar.gz
portage-066d841129e7df3ee5841ab9c433378d202402e2.tar.bz2
portage-066d841129e7df3ee5841ab9c433378d202402e2.zip
Bug #204651 - Make repoman respect NOCOLOR=true.
svn path=/main/trunk/; revision=9151
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/output.py3
1 files changed, 2 insertions, 1 deletions
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)