diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-02-16 01:27:02 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-02-16 01:27:02 +0000 |
commit | aaf49ad8dde352831e9af1ad646a68f3bbd93fdf (patch) | |
tree | dad4701afe87491f339afea1f2e78adaddc7b7fb | |
parent | 861fb716b306db698b7a4357e2cd6866658ab5f5 (diff) | |
download | portage-aaf49ad8dde352831e9af1ad646a68f3bbd93fdf.tar.gz portage-aaf49ad8dde352831e9af1ad646a68f3bbd93fdf.tar.bz2 portage-aaf49ad8dde352831e9af1ad646a68f3bbd93fdf.zip |
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
-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 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" |