From: Zac Medico Date: Thu, 9 Sep 2010 17:09:39 +0000 (-0700) Subject: Make EbuildFetcher always disable color in prefetch mode, since X-Git-Tag: v2.2_rc79~25 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5f475f87892a950022d9310d879d2db38a6eda2f;p=portage.git Make EbuildFetcher always disable color in prefetch mode, since prefetch output always goes to a log. --- diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py index bbae6a6a1..87c82db58 100644 --- a/pym/_emerge/EbuildFetcher.py +++ b/pym/_emerge/EbuildFetcher.py @@ -64,6 +64,12 @@ class EbuildFetcher(SpawnProcess): fetch_env['PORTAGE_CONFIGROOT'] = settings['PORTAGE_CONFIGROOT'] nocolor = settings.get("NOCOLOR") + + if self.prefetch: + # prefetch always outputs to a log, so + # always disable color + nocolor = "true" + if nocolor is not None: fetch_env["NOCOLOR"] = nocolor