From: Zac Medico Date: Tue, 12 Jun 2012 02:00:09 +0000 (-0700) Subject: config: pass tolerant param to getconfig more X-Git-Tag: v2.2.0_alpha111~53 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a1575118627e0145cda09e93f5a076f3ec66feb;p=portage.git config: pass tolerant param to getconfig more --- 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: