From 7f414eba7b149ee65223a42f9ac4e88fa1b0bac0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 05:18:56 +0000 Subject: 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 --- pym/_emerge/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pym') 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" -- cgit v1.2.3-1-g7c22