From 003ef79f1b4a4a0da3760f978fcdf24a3bca8734 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 13 Dec 2009 01:45:45 +0000 Subject: Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and 2. svn path=/main/trunk/; revision=15057 --- bin/ebuild.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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() { -- cgit v1.2.3-1-g7c22