From: Zac Medico Date: Sun, 13 Dec 2009 03:55:20 +0000 (-0000) Subject: Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and X-Git-Tag: v2.1.7.14~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1160b13f743a72f694ae7b1d5f0fc4cd5cdfe0cb;p=portage.git Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and 2. (trunk r15057) svn path=/main/branches/2.1.7/; revision=15090 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 0dd7e980e..62d051eea 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1949,6 +1949,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() {