summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/package/ebuild/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index 2cd21f3c9..38f15c081 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -313,15 +313,15 @@ class config(object):
# Notably absent is "env", since we want to avoid any
# interaction with the calling environment that might
# lead to unexpected results.
- expand_map = {}
+
+ env_d = getconfig(os.path.join(eroot, "etc", "profile.env"),
+ expand=False) or {}
+ expand_map = env_d.copy()
self._expand_map = expand_map
# Allow make.globals to set default paths relative to ${EPREFIX}.
expand_map["EPREFIX"] = eprefix
- env_d = getconfig(os.path.join(eroot, "etc", "profile.env"),
- expand=False)
-
make_globals = getconfig(os.path.join(
self.global_config_path, 'make.globals'), expand=expand_map)
if make_globals is None: