From 4851b488a44a4d8d82342aec7cc8b81c5ad5e6a3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 6 Jan 2008 20:25:17 +0000 Subject: Bug #204651 - Make repoman respect NOCOLOR=true. (trunk r9151) svn path=/main/branches/2.1.2/; revision=9152 --- bin/repoman | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') 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) -- cgit v1.2.3-1-g7c22