Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and
authorZac Medico <zmedico@gentoo.org>
Sun, 13 Dec 2009 03:55:20 +0000 (03:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 13 Dec 2009 03:55:20 +0000 (03:55 -0000)
2. (trunk r15057)

svn path=/main/branches/2.1.7/; revision=15090

bin/ebuild.sh

index 0dd7e980e3f8ef141240e8e77a40b00b6631ef0b..62d051eea55db62ca78b59f4c8ce5f36861d721b 100755 (executable)
@@ -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() {