From 32e8aa1afa2f40aba1a6bba6ed7e5ec3dc71c748 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 Dec 2009 06:09:43 +0000 Subject: In config.environ(), only export ED, EPREFIX, and EROOT to the ebuild environment starting with EAPI 3 (so people won't write ebuilds that are incompatible with older package managers). svn path=/main/trunk/; revision=15032 --- pym/portage/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pym') diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 62cdd7911..8af73b6ff 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3780,6 +3780,12 @@ class config(object): if eapi not in ("0", "1", "2", "3"): mydict.pop("AA", None) + # Prefix variables are supported starting with EAPI 3. + if eapi in ("0", "1", "2"): + mydict.pop("ED", None) + mydict.pop("EPREFIX", None) + mydict.pop("EROOT", None) + # sandbox's bashrc sources /etc/profile which unsets ROOTPATH, # so we have to back it up and restore it. rootpath = mydict.get("ROOTPATH") -- cgit v1.2.3-1-g7c22