diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-12-13 03:55:20 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-12-13 03:55:20 +0000 |
commit | 1160b13f743a72f694ae7b1d5f0fc4cd5cdfe0cb (patch) | |
tree | b1df28196dcb7da15fb65c606aef3f6ab5d3c89b /bin | |
parent | 6bd5072abe7cc5ddb2b8990948bdc922040c077c (diff) | |
download | portage-1160b13f743a72f694ae7b1d5f0fc4cd5cdfe0cb.tar.gz portage-1160b13f743a72f694ae7b1d5f0fc4cd5cdfe0cb.tar.bz2 portage-1160b13f743a72f694ae7b1d5f0fc4cd5cdfe0cb.zip |
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
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebuild.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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() { |