From 8d81e65167fb806f33fa6512398f5c72c78299c7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 14 Nov 2007 21:07:33 +0000 Subject: * Replace references to deprecated ${IMAGE} with equivalent ${D}. * Remove redundant trailing slashes and fix quoting. svn path=/main/trunk/; revision=8501 --- bin/ebuild.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index cd4fca842..158f91945 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1034,14 +1034,13 @@ dyn_install() { } dyn_preinst() { - if [ -z "$IMAGE" ]; then - eerror "${FUNCNAME}: IMAGE is unset" + if [ -z "${D}" ]; then + eerror "${FUNCNAME}: D is unset" return 1 fi [ "$(type -t pre_pkg_preinst)" == "function" ] && qa_call pre_pkg_preinst - declare -r D=${IMAGE} pkg_preinst [ "$(type -t post_pkg_preinst)" == "function" ] && qa_call post_pkg_preinst @@ -1434,11 +1433,9 @@ export S=${WORKDIR}/${P} unset E_IUSE E_DEPEND E_RDEPEND E_PDEPEND -for x in T P PN PV PVR PR CATEGORY A EBUILD EMERGE_FROM FILESDIR PORTAGE_TMPDIR; do +for x in D T P PN PV PVR PR CATEGORY A EBUILD EMERGE_FROM FILESDIR PORTAGE_TMPDIR; do [[ ${!x-UNSET_VAR} != UNSET_VAR ]] && declare -r ${x} done -# Need to be able to change D in dyn_preinst due to the IMAGE stuff -[[ ${EBUILD_SH_ARGS} != "preinst" ]] && declare -r D unset x # Turn of extended glob matching so that g++ doesn't get incorrectly matched. -- cgit v1.2.3-1-g7c22