Unset prefix vars for depend phase when EAPI is unknown. (trunk r15049)
authorZac Medico <zmedico@gentoo.org>
Sun, 13 Dec 2009 03:53:58 +0000 (03:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 13 Dec 2009 03:53:58 +0000 (03:53 -0000)
svn path=/main/branches/2.1.7/; revision=15083

pym/portage/__init__.py

index b70c5fe26bb3858e12a82054ee086e19aacbdafe..04bbfdc877b10d6c1314a042f27e1c434d12a778 100644 (file)
@@ -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)