From 134298cebf8b3822bc31a25d72fd8c6d0bbd10bc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 11 Apr 2006 03:54:13 +0000 Subject: Support EBUILD_PHASE during package and rpm phases for bug #129244. svn path=/main/trunk/; revision=3125 --- bin/ebuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 3f2610c4e..c4cf610f1 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -11,6 +11,8 @@ if [ ! -z "${PORTAGE_GPG_DIR}" ]; then SANDBOX_PREDICT="${SANDBOX_PREDICT}:${PORTAGE_GPG_DIR}" fi +declare -rx EBUILD_PHASE + if [ "$*" != "depend" ] && [ "$*" != "clean" ] && [ "$*" != "nofetch" ]; then if [ -f "${T}/environment" ]; then source "${T}/environment" &>/dev/null @@ -21,8 +23,6 @@ if [ -n "$#" ]; then ARGS="${*}" fi -declare -rx EBUILD_PHASE="$*" - # Prevent aliases from causing portage to act inappropriately. # Make sure it's before everything so we don't mess aliases that follow. unalias -a -- cgit v1.2.3-1-g7c22