Bug #259124 - Inside EbuildFetcher._start(), pass the NOCOLOR variable into
authorZac Medico <zmedico@gentoo.org>
Mon, 16 Feb 2009 01:27:02 +0000 (01:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 16 Feb 2009 01:27:02 +0000 (01:27 -0000)
the fetch environment, so that --color=n is respected.

svn path=/main/trunk/; revision=12621

pym/_emerge/__init__.py

index 822672f3fc612af89acc66a0dfaeed6f6700408e..e63da7d5e278ba757e7edfe4f8c7e86f43e50cd9 100644 (file)
@@ -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"