projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bd5072
)
Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and
author
Zac Medico
<zmedico@gentoo.org>
Sun, 13 Dec 2009 03:55:20 +0000
(
03:55
-0000)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/bin/ebuild.sh
b/bin/ebuild.sh
index 0dd7e980e3f8ef141240e8e77a40b00b6631ef0b..62d051eea55db62ca78b59f4c8ce5f36861d721b 100755
(executable)
--- 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() {