Enable bashrc even when $EBUILD_PHASE is unset, so it's possible to override
authorZac Medico <zmedico@gentoo.org>
Sun, 26 Oct 2008 07:55:41 +0000 (07:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 26 Oct 2008 07:55:41 +0000 (07:55 -0000)
things like INSTALL_MASK.

svn path=/main/trunk/; revision=11726

bin/ebuild.sh

index 35b940bfb7c0778554f72fed3e5c4624d9dcc50a..00600473b3c959ad703eb9150059719d06bce339 100755 (executable)
@@ -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