summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-02-10 01:47:47 +0000
committerZac Medico <zmedico@gentoo.org>2006-02-10 01:47:47 +0000
commit899d104efe83cdbf7dad768a6a3f1191d98fbf36 (patch)
treeb2e030877f401e58fefe84073a3345cf2c6dcad2
parentc1a4a68591286be94f0107fdf2168d1a7649477b (diff)
downloadportage-899d104efe83cdbf7dad768a6a3f1191d98fbf36.tar.gz
portage-899d104efe83cdbf7dad768a6a3f1191d98fbf36.tar.bz2
portage-899d104efe83cdbf7dad768a6a3f1191d98fbf36.zip
make repoman obey NOCOLOR for bug 77566 (patch by antarus)
svn path=/main/trunk/; revision=2688
-rwxr-xr-xbin/repoman2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman
index 2001dfddd..eff9134e5 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -39,6 +39,8 @@ from fileinput import input
from grp import getgrnam
from stat import *
+if portage.settings["NOCOLOR"] in ("yes","true") or not sys.stdout.isatty():
+ nocolor()
def warn(txt):
print exename+": "+txt