projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1dd891
)
Add NOCOLOR support to bin/ebuild for bug 78701.
author
Zac Medico
<zmedico@gentoo.org>
Thu, 23 Feb 2006 17:36:08 +0000
(17:36 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 23 Feb 2006 17:36:08 +0000
(17:36 -0000)
svn path=/main/trunk/; revision=2773
bin/ebuild
patch
|
blob
|
history
diff --git
a/bin/ebuild
b/bin/ebuild
index 7bac145f01dd1f3831383098007eff69d66d0fe9..fafdbbccc203c91f6cbefac0bf6e3396e8b7b9d2 100755
(executable)
--- 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):