From: Zac Medico Date: Thu, 23 Feb 2006 17:36:08 +0000 (-0000) Subject: Add NOCOLOR support to bin/ebuild for bug 78701. X-Git-Tag: v2.1_pre6~65 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23b782ab4cd4bcc4f92d6c1842a20b9c6482785f;p=portage.git Add NOCOLOR support to bin/ebuild for bug 78701. svn path=/main/trunk/; revision=2773 --- diff --git a/bin/ebuild b/bin/ebuild index 7bac145f0..fafdbbccc 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -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):