Simplify the code for bug #221755 now that the substitution map is updated
authorZac Medico <zmedico@gentoo.org>
Sun, 11 May 2008 23:56:58 +0000 (23:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 11 May 2008 23:56:58 +0000 (23:56 -0000)
automatically by getconfig().

svn path=/main/trunk/; revision=10297

pym/portage/__init__.py

index 5cc66043b7b49c8f1e044d5a0519f77ecb45499a..26ef9fae685b53a52cb142840107c479a82d352d 100644 (file)
@@ -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: