From 1ab8e8ca080905e198af8bdae475471178987ff6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 1 Aug 2008 10:37:18 +0000 Subject: [PATCH] Make EbuildFetcher pass a copy of os.environ to the ebuild(1) subprocess so that any incremental variables have been overridden are correctly considered by the config instance in the subproccess. svn path=/main/trunk/; revision=11312 --- pym/_emerge/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index a401e7e09..19c86ff4e 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -2239,7 +2239,12 @@ class EbuildFetcher(SpawnProcess): if self.fetchall: phase = "fetchall" - fetch_env = dict(settings.iteritems()) + # If any incremental variables have been overridden + # via the environment, those values need to be passed + # along here so that they are correctly considered by + # the config instance in the subproccess. + fetch_env = os.environ.copy() + fetch_env["PORTAGE_NICENESS"] = "0" if self.fetchonly: fetch_env["PORTAGE_PARALLEL_FETCHONLY"] = "1" -- 2.26.2