From: Zac Medico Date: Sun, 6 Jan 2008 20:25:17 +0000 (-0000) Subject: Bug #204651 - Make repoman respect NOCOLOR=true. (trunk r9151) X-Git-Tag: v2.1.4~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4851b488a44a4d8d82342aec7cc8b81c5ad5e6a3;p=portage.git Bug #204651 - Make repoman respect NOCOLOR=true. (trunk r9151) svn path=/main/branches/2.1.2/; revision=9152 --- diff --git a/bin/repoman b/bin/repoman index 6e1a83b52..b4b648271 100755 --- a/bin/repoman +++ b/bin/repoman @@ -63,6 +63,7 @@ from portage_manifest import Manifest from portage_exception import ParseError from portage_exec import find_binary, spawn +import output from output import bold, create_color_func, darkgreen, \ green, nocolor, red, turquoise, yellow @@ -403,7 +404,7 @@ class ConsoleStyleFile(object): self._styles = styles def write(self, s): - if self._styles: + if output.havecolor and self._styles: for style in self._styles: self._file.write(self._codes[style]) self._file.write(s)