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