From: Zac Medico Date: Sun, 11 May 2008 23:56:58 +0000 (-0000) Subject: Simplify the code for bug #221755 now that the substitution map is updated X-Git-Tag: v2.2_pre7~36 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=46d2614b482751b2268e74ea9feab1c6ff23bd65;p=portage.git Simplify the code for bug #221755 now that the substitution map is updated automatically by getconfig(). svn path=/main/trunk/; revision=10297 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 5cc66043b..26ef9fae6 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -1280,13 +1280,9 @@ class config(object): self.make_defaults_use = [] self.mygcfg = {} if self.profiles: - mygcfg_dlists = [] - var_map = {} expand_map = {} - for x in self.profiles: - var_map = getconfig(os.path.join(x, "make.defaults"), - expand=expand_map) - mygcfg_dlists.append(var_map) + mygcfg_dlists = [getconfig(os.path.join(x, "make.defaults"), + expand=expand_map) for x in self.profiles] for cfg in mygcfg_dlists: if cfg: