From 02a8a626fae83bae6456d032465cfe2618571336 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 13 Dec 2009 03:53:58 +0000 Subject: [PATCH] Unset prefix vars for depend phase when EAPI is unknown. (trunk r15049) svn path=/main/branches/2.1.7/; revision=15083 --- 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 b70c5fe26..04bbfdc87 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