From: Zac Medico Date: Sun, 26 Oct 2008 07:55:41 +0000 (-0000) Subject: Enable bashrc even when $EBUILD_PHASE is unset, so it's possible to override X-Git-Tag: v2.2_rc13~56 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e776f81724e9cf50265cd1f3ecd364c6e930664b;p=portage.git Enable bashrc even when $EBUILD_PHASE is unset, so it's possible to override things like INSTALL_MASK. svn path=/main/trunk/; revision=11726 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 35b940bfb..00600473b 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1525,10 +1525,9 @@ _ebuild_phase_funcs() { # function for the current phase. # source_all_bashrcs() { - [ -n "$EBUILD_PHASE" ] || return local x - if [[ -n $EAPI ]] ; then + if [[ -n $EBUILD_PHASE && -n $EAPI ]] ; then local phase_func=$(_ebuild_arg_to_phase "$EAPI" $EBUILD_PHASE) [[ -n $phase_func ]] && _ebuild_phase_funcs "$EAPI" $phase_func fi