diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-11 05:18:56 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-11 05:18:56 +0000 |
commit | 7f414eba7b149ee65223a42f9ac4e88fa1b0bac0 (patch) | |
tree | 3830bed16add2d3e70519059fdf5fba1a3d329a1 | |
parent | 78e6c5421613fa440259505a01d9a11b8ae26cb6 (diff) | |
download | portage-7f414eba7b149ee65223a42f9ac4e88fa1b0bac0.tar.gz portage-7f414eba7b149ee65223a42f9ac4e88fa1b0bac0.tar.bz2 portage-7f414eba7b149ee65223a42f9ac4e88fa1b0bac0.zip |
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
-rw-r--r-- | pym/_emerge/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
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" |