summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-12 09:13:18 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-12 09:13:18 +0000
commit73bb014c5cb688d84fd30527010c9af1a46449bf (patch)
tree27483d64164d25b1693a00ec1571391b9d314cc4
parent56b166d2443be3ffc8402e3561ac98f731ff22c2 (diff)
downloadportage-73bb014c5cb688d84fd30527010c9af1a46449bf.tar.gz
portage-73bb014c5cb688d84fd30527010c9af1a46449bf.tar.bz2
portage-73bb014c5cb688d84fd30527010c9af1a46449bf.zip
Unset prefix vars for depend phase when EAPI is unknown.
svn path=/main/trunk/; revision=15049
-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)