summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index f82074f74..bbaee8027 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -961,7 +961,11 @@ class config:
Generally if you need data like USE flags, FEATURES, environment variables,
virtuals ...etc you look in here.
"""
-
+
+ # Filter selected variables in the config.environ() method so that
+ # they don't needlessly propagate down into the ebuild environment.
+ _environ_filter = frozenset(["PORTAGE_ECLASS_WARNING_ENABLE"])
+
def __init__(self, clone=None, mycpv=None, config_profile_path=None,
config_incrementals=None, config_root=None, target_root=None,
local_config=True):
@@ -2429,7 +2433,10 @@ class config:
def environ(self):
"return our locally-maintained environment"
mydict={}
+ environ_filter = self._environ_filter
for x in self:
+ if x in environ_filter:
+ continue
myvalue = self[x]
if not isinstance(myvalue, basestring):
writemsg("!!! Non-string value in config: %s=%s\n" % \