make repoman obey NOCOLOR for bug 77566 (patch by antarus)
authorZac Medico <zmedico@gentoo.org>
Fri, 10 Feb 2006 01:47:47 +0000 (01:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 10 Feb 2006 01:47:47 +0000 (01:47 -0000)
svn path=/main/trunk/; revision=2688

bin/repoman

index 2001dfdddd628ab286ea9b23c1b60f4f6b88005d..eff9134e54fecffd9daf9aa1ee2b8677a7a7e475 100755 (executable)
@@ -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