Add NOCOLOR support to bin/ebuild for bug 78701.
authorZac Medico <zmedico@gentoo.org>
Thu, 23 Feb 2006 17:36:08 +0000 (17:36 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 23 Feb 2006 17:36:08 +0000 (17:36 -0000)
svn path=/main/trunk/; revision=2773

bin/ebuild

index 7bac145f01dd1f3831383098007eff69d66d0fe9..fafdbbccc203c91f6cbefac0bf6e3396e8b7b9d2 100755 (executable)
@@ -25,6 +25,10 @@ sys.path = ["/usr/lib/portage/pym"]+sys.path
 
 import portage, portage_util, portage_const
 
+if portage.settings["NOCOLOR"] in ("yes","true") or not sys.stdout.isatty():
+       import output
+       output.nocolor()
+
 ebuild = os.path.realpath(pargs.pop(0))
 
 if not os.path.exists(ebuild):