Fix inverted logic in eapi_supports_prefix() call, which causes a
authorZac Medico <zmedico@gentoo.org>
Fri, 13 Aug 2010 01:42:08 +0000 (18:42 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 13 Aug 2010 01:42:08 +0000 (18:42 -0700)
regression such that ED, EPREFIX, and EROOT where not set in EAPI 3
ebuild environments (just for portage-9999 users).

pym/portage/package/ebuild/config.py

index 2f2850ff2889d05b3babb2ba93ae2b9c0ef294ee..a97dd33ac4a5eccf0410b96cf3e9cee426053373 100644 (file)
@@ -2644,7 +2644,7 @@ class config(object):
                        mydict.pop("AA", None)
 
                # Prefix variables are supported starting with EAPI 3.
-               if phase == 'depend' or eapi is None or eapi_supports_prefix(eapi):
+               if phase == 'depend' or eapi is None or not eapi_supports_prefix(eapi):
                        mydict.pop("ED", None)
                        mydict.pop("EPREFIX", None)
                        mydict.pop("EROOT", None)