summaryrefslogtreecommitdiffstats
path: root/pym/portage/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r--pym/portage/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 04bbfdc87..4a6f8fd85 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -3777,8 +3777,7 @@ class config(object):
mydict.pop("AA", None)
# Prefix variables are supported starting with EAPI 3.
- # eapi is None for 'depend' phase
- if eapi in (None, "0", "1", "2"):
+ if phase == 'depend' or eapi in (None, "0", "1", "2"):
mydict.pop("ED", None)
mydict.pop("EPREFIX", None)
mydict.pop("EROOT", None)