summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/EbuildFetcher.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py
index 228d15bb2..ba282081e 100644
--- a/pym/_emerge/EbuildFetcher.py
+++ b/pym/_emerge/EbuildFetcher.py
@@ -66,6 +66,11 @@ class EbuildFetcher(SpawnProcess):
if debug:
fetch_args.append("--debug")
+ if not self.background and nocolor not in ('yes', 'true'):
+ # Force consistent color output, in case we are capturing fetch
+ # output through a normal pipe due to unavailability of ptys.
+ fetch_args.append('--color=y')
+
self.args = fetch_args
self.env = fetch_env
SpawnProcess._start(self)