summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-10-26 07:55:41 +0000
committerZac Medico <zmedico@gentoo.org>2008-10-26 07:55:41 +0000
commite776f81724e9cf50265cd1f3ecd364c6e930664b (patch)
treecb0c034204924a582381571ea084da2829fc59e3 /bin/ebuild.sh
parent6c7b407c23ea0cff96edfa36a64f05735dee93c8 (diff)
downloadportage-e776f81724e9cf50265cd1f3ecd364c6e930664b.tar.gz
portage-e776f81724e9cf50265cd1f3ecd364c6e930664b.tar.bz2
portage-e776f81724e9cf50265cd1f3ecd364c6e930664b.zip
Enable bashrc even when $EBUILD_PHASE is unset, so it's possible to override
things like INSTALL_MASK. svn path=/main/trunk/; revision=11726
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh3
1 files changed, 1 insertions, 2 deletions
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