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__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 6c1350065..54d36f9e8 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -3780,6 +3780,12 @@ class config(object):
if eapi not in ("0", "1", "2", "3"):
mydict.pop("AA", None)
+ # Prefix variables are supported starting with EAPI 3.
+ if eapi in ("0", "1", "2"):
+ mydict.pop("ED", None)
+ mydict.pop("EPREFIX", None)
+ mydict.pop("EROOT", None)
+
# sandbox's bashrc sources /etc/profile which unsets ROOTPATH,
# so we have to back it up and restore it.
rootpath = mydict.get("ROOTPATH")