summaryrefslogtreecommitdiffstats
path: root/pym/portage/package/ebuild/config.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-06-11 19:00:09 -0700
committerZac Medico <zmedico@gentoo.org>2012-06-11 19:00:09 -0700
commit3a1575118627e0145cda09e93f5a076f3ec66feb (patch)
treedda2eb6074f1dfaf3adfef6e3a4aaa2729edc7e9 /pym/portage/package/ebuild/config.py
parent908de31ae2049eef02432d73478a403ffcad1ead (diff)
downloadportage-3a1575118627e0145cda09e93f5a076f3ec66feb.tar.gz
portage-3a1575118627e0145cda09e93f5a076f3ec66feb.tar.bz2
portage-3a1575118627e0145cda09e93f5a076f3ec66feb.zip
config: pass tolerant param to getconfig more
Diffstat (limited to 'pym/portage/package/ebuild/config.py')
-rw-r--r--pym/portage/package/ebuild/config.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index 21fc1d529..2fa799f7e 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -328,7 +328,7 @@ class config(object):
# lead to unexpected results.
env_d = getconfig(os.path.join(eroot, "etc", "profile.env"),
- expand=False) or {}
+ tolerant=tolerant, expand=False) or {}
expand_map = env_d.copy()
self._expand_map = expand_map
@@ -336,7 +336,8 @@ class config(object):
expand_map["EPREFIX"] = eprefix
make_globals = getconfig(os.path.join(
- self.global_config_path, 'make.globals'), expand=expand_map)
+ self.global_config_path, 'make.globals'),
+ tolerant=tolerant, expand=expand_map)
if make_globals is None:
make_globals = {}
@@ -463,7 +464,8 @@ class config(object):
mygcfg = {}
if self.profiles:
mygcfg_dlists = [getconfig(os.path.join(x, "make.defaults"),
- expand=expand_map) for x in self.profiles]
+ tolerant=tolerant, expand=expand_map)
+ for x in self.profiles]
self._make_defaults = mygcfg_dlists
mygcfg = stack_dicts(mygcfg_dlists,
incrementals=self.incrementals)
@@ -580,7 +582,7 @@ class config(object):
self._repo_make_defaults = {}
for repo in self.repositories.repos_with_profiles():
d = getconfig(os.path.join(repo.location, "profiles", "make.defaults"),
- expand=self.configdict["globals"].copy()) or {}
+ tolerant=tolerant, expand=self.configdict["globals"].copy()) or {}
if d:
for k in chain(self._env_blacklist,
profile_only_variables, self._global_only_vars):
@@ -1868,7 +1870,8 @@ class config(object):
"""Reload things like /etc/profile.env that can change during runtime."""
env_d_filename = os.path.join(self["EROOT"], "etc", "profile.env")
self.configdict["env.d"].clear()
- env_d = getconfig(env_d_filename, expand=False)
+ env_d = getconfig(env_d_filename,
+ tolerant=self._tolerant, expand=False)
if env_d:
# env_d will be None if profile.env doesn't exist.
for k in self._env_d_blacklist: