From 73bb014c5cb688d84fd30527010c9af1a46449bf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 12 Dec 2009 09:13:18 +0000 Subject: [PATCH] Unset prefix vars for depend phase when EAPI is unknown. svn path=/main/trunk/; revision=15049 --- pym/portage/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.26.2