summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/__init__.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-11 05:18:56 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-11 05:18:56 +0000
commit7f414eba7b149ee65223a42f9ac4e88fa1b0bac0 (patch)
tree3830bed16add2d3e70519059fdf5fba1a3d329a1 /pym/_emerge/__init__.py
parent78e6c5421613fa440259505a01d9a11b8ae26cb6 (diff)
downloadportage-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
Diffstat (limited to 'pym/_emerge/__init__.py')
-rw-r--r--pym/_emerge/__init__.py4
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"