From 46d2614b482751b2268e74ea9feab1c6ff23bd65 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 11 May 2008 23:56:58 +0000 Subject: Simplify the code for bug #221755 now that the substitution map is updated automatically by getconfig(). svn path=/main/trunk/; revision=10297 --- pym/portage/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'pym/portage') 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: -- cgit v1.2.3-1-g7c22