From: Zac Medico Date: Mon, 16 Feb 2009 01:27:02 +0000 (-0000) Subject: Bug #259124 - Inside EbuildFetcher._start(), pass the NOCOLOR variable into X-Git-Tag: v2.2_rc24~184 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aaf49ad8dde352831e9af1ad646a68f3bbd93fdf;p=portage.git Bug #259124 - Inside EbuildFetcher._start(), pass the NOCOLOR variable into the fetch environment, so that --color=n is respected. svn path=/main/trunk/; revision=12621 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 822672f3f..e63da7d5e 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -2458,6 +2458,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"