From: Zac Medico Date: Wed, 11 Mar 2009 05:18:56 +0000 (-0000) Subject: Bug #259124 - Inside EbuildFetcher._start(), pass the NOCOLOR variable into X-Git-Tag: v2.1.6.8~181 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7f414eba7b149ee65223a42f9ac4e88fa1b0bac0;p=portage.git Bug #259124 - Inside EbuildFetcher._start(), pass the NOCOLOR variable into the fetch environment, so that --color=n is respected. (trunk r12621) svn path=/main/branches/2.1.6/; revision=12896 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 51a2df888..dc848fc9d 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -2439,6 +2439,10 @@ class EbuildFetcher(SpawnProcess): # the config instance in the subproccess. fetch_env = os.environ.copy() + nocolor = settings.get("NOCOLOR") + if nocolor is not None: + fetch_env["NOCOLOR"] = nocolor + fetch_env["PORTAGE_NICENESS"] = "0" if self.prefetch: fetch_env["PORTAGE_PARALLEL_FETCHONLY"] = "1"