summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/package/ebuild/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index df719e2f1..9bb26cad0 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -2284,9 +2284,9 @@ class config(object):
# useless with prefix configurations. This brings compatibility with
# the prefix branch of portage, which also supports EPREFIX for all
# EAPIs (for obvious reasons).
- if phase == 'depend' or eapi is None or \
+ if phase == 'depend' or \
('force-prefix' not in self.features and
- not eapi_supports_prefix(eapi)):
+ eapi is not None and not eapi_supports_prefix(eapi)):
mydict.pop("ED", None)
mydict.pop("EPREFIX", None)
mydict.pop("EROOT", None)