From aaf49ad8dde352831e9af1ad646a68f3bbd93fdf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 16 Feb 2009 01:27:02 +0000 Subject: [PATCH] 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 --- pym/_emerge/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) 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" -- 2.26.2