Make phase variable local in has_phase_defined_up_to().
authorZac Medico <zmedico@gentoo.org>
Sat, 17 Oct 2009 05:44:17 +0000 (05:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 17 Oct 2009 05:44:17 +0000 (05:44 -0000)
svn path=/main/trunk/; revision=14618

bin/ebuild.sh

index d6e833639990b63bad7709c913cdc2566b2f775d..88084c5a280c8db7b381c165df68f718121f967b 100755 (executable)
@@ -898,6 +898,7 @@ abort_install() {
 }
 
 has_phase_defined_up_to() {
+       local phase
        for phase in unpack prepare configure compile install; do
                has ${phase} ${DEFINED_PHASES} && return 0
                [[ ${phase} == $1 ]] && return 1