Bug #259124 - Inside EbuildFetcher._start(), pass the NOCOLOR variable into
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:18:56 +0000 (05:18 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:18:56 +0000 (05:18 -0000)
the fetch environment, so that --color=n is respected. (trunk r12621)

svn path=/main/branches/2.1.6/; revision=12896

pym/_emerge/__init__.py

index 51a2df8887eebb0555b21f2d05d38136b5177775..dc848fc9db1f942a5334c6fee879ba1bb1ed2336 100644 (file)
@@ -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"