summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild4
1 files changed, 4 insertions, 0 deletions
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):