diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-09-02 15:56:46 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-09-02 15:56:46 -0700 |
commit | d184c0f32eba2eec3a8d28ae71be79aa635db147 (patch) | |
tree | e351595adec837826161570d8a4723d3eaa52af9 /bin/phase-functions.sh | |
parent | 952d5c235ed1b440cd156654014fd51f55b638cb (diff) | |
download | portage-d184c0f32eba2eec3a8d28ae71be79aa635db147.tar.gz portage-d184c0f32eba2eec3a8d28ae71be79aa635db147.tar.bz2 portage-d184c0f32eba2eec3a8d28ae71be79aa635db147.zip |
Quote ${EAPI} more.
This will avoid a potential syntax error in save-ebuild-env.sh if a
saved environment containing corrupt EAPI is sourced.
Diffstat (limited to 'bin/phase-functions.sh')
-rw-r--r-- | bin/phase-functions.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index fd7fb25b9..68a33a871 100644 --- a/bin/phase-functions.sh +++ b/bin/phase-functions.sh @@ -755,12 +755,12 @@ _ebuild_phase_funcs() { eval "$x() { _eapi0_$x \"\$@\" ; }" done - case $eapi in + case "$eapi" in 0|1) if ! declare -F src_compile >/dev/null ; then - case $eapi in + case "$eapi" in 0) src_compile() { _eapi0_src_compile "$@" ; } ;; @@ -807,7 +807,7 @@ _ebuild_phase_funcs() { eval "default() { _eapi2_$phase_func \"\$@\" ; }" - case $eapi in + case "$eapi" in 2|3) ;; *) |