summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-13 01:45:45 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-13 01:45:45 +0000
commit003ef79f1b4a4a0da3760f978fcdf24a3bca8734 (patch)
tree90d0d4be8a00827db1939589617e90984603d2f0
parented06dd2ee93e245e737c3b7692aedb4b5108a241 (diff)
downloadportage-003ef79f1b4a4a0da3760f978fcdf24a3bca8734.tar.gz
portage-003ef79f1b4a4a0da3760f978fcdf24a3bca8734.tar.bz2
portage-003ef79f1b4a4a0da3760f978fcdf24a3bca8734.zip
Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and
2. svn path=/main/trunk/; revision=15057
-rwxr-xr-xbin/ebuild.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 09ec4cac5..b3cb9ca9f 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1943,6 +1943,13 @@ export TMPDIR="${T}"
# declare them only after it has already run.
if [ "${EBUILD_PHASE}" != "depend" ] ; then
declare -r ${READONLY_EBUILD_METADATA} ${READONLY_PORTAGE_VARS}
+ case "$EAPI" in
+ 0|1|2)
+ ;;
+ *)
+ declare -r ED EPREFIX EROOT
+ ;;
+ esac
fi
ebuild_main() {