From: Zac Medico Date: Fri, 9 Oct 2009 20:28:30 +0000 (-0000) Subject: Force consistent color output, in case we are capturing fetch X-Git-Tag: v2.2_rc45~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5faa8b31f5f34527a627acfe77b1d6715ac4ce76;p=portage.git 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 --- 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)