diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-12-10 09:49:33 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-12-10 09:49:33 -0800 |
commit | cacbbe33b839737fecff2b81fc638bb40f08686c (patch) | |
tree | 8a3ae260266fe90ee62f75afc23db38b1b7b0759 | |
parent | d43e3f0b3c72b40bcb88e98fd445316d61d71ff6 (diff) | |
download | portage-cacbbe33b839737fecff2b81fc638bb40f08686c.tar.gz portage-cacbbe33b839737fecff2b81fc638bb40f08686c.tar.bz2 portage-cacbbe33b839737fecff2b81fc638bb40f08686c.zip |
config.environ: allow prefix vars if no EAPI
This allows access to EPREFIX inside things like post_sync hooks, where
EAPI is undefined.
-rw-r--r-- | pym/portage/package/ebuild/config.py | 4 |
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) |