summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-11 23:56:58 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-11 23:56:58 +0000
commit46d2614b482751b2268e74ea9feab1c6ff23bd65 (patch)
tree8fce2c9c7b02b9c54f1186f09ebfbd27b64ad388
parentce6d8a6555aa17790f542501f17a8121d12dbe3d (diff)
downloadportage-46d2614b482751b2268e74ea9feab1c6ff23bd65.tar.gz
portage-46d2614b482751b2268e74ea9feab1c6ff23bd65.tar.bz2
portage-46d2614b482751b2268e74ea9feab1c6ff23bd65.zip
Simplify the code for bug #221755 now that the substitution map is updated
automatically by getconfig(). svn path=/main/trunk/; revision=10297
-rw-r--r--pym/portage/__init__.py8
1 files changed, 2 insertions, 6 deletions
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: