From 5faa8b31f5f34527a627acfe77b1d6715ac4ce76 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 9 Oct 2009 20:28:30 +0000 Subject: [PATCH] Force consistent color output, in case we are capturing fetch output through a normal pipe due to unavailability of ptys. Thanks to grobian for reporting. svn path=/main/trunk/; revision=14530 --- pym/_emerge/EbuildFetcher.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.26.2