diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-01-06 20:25:17 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-01-06 20:25:17 +0000 |
commit | 4851b488a44a4d8d82342aec7cc8b81c5ad5e6a3 (patch) | |
tree | 9c0f3032e2f30a2ad8a85812d7994435601b7152 | |
parent | e45e614a430cd094ce2f7594d593370e6248691b (diff) | |
download | portage-4851b488a44a4d8d82342aec7cc8b81c5ad5e6a3.tar.gz portage-4851b488a44a4d8d82342aec7cc8b81c5ad5e6a3.tar.bz2 portage-4851b488a44a4d8d82342aec7cc8b81c5ad5e6a3.zip |
Bug #204651 - Make repoman respect NOCOLOR=true. (trunk r9151)
svn path=/main/branches/2.1.2/; revision=9152
-rwxr-xr-x | bin/repoman | 3 |
1 files changed, 2 insertions, 1 deletions
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) |