From: Zac Medico Date: Sun, 13 Dec 2009 01:45:45 +0000 (-0000) Subject: Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and X-Git-Tag: v2.2_rc59~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=003ef79f1b4a4a0da3760f978fcdf24a3bca8734;p=portage.git Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and 2. svn path=/main/trunk/; revision=15057 --- 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() {