diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-14 21:07:33 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-14 21:07:33 +0000 |
commit | 8d81e65167fb806f33fa6512398f5c72c78299c7 (patch) | |
tree | 07617e2019d3f560a7cebf880f226916e03e8675 /bin/ebuild.sh | |
parent | ab3703ae8663e428576114fbfb4946147608f7c5 (diff) | |
download | portage-8d81e65167fb806f33fa6512398f5c72c78299c7.tar.gz portage-8d81e65167fb806f33fa6512398f5c72c78299c7.tar.bz2 portage-8d81e65167fb806f33fa6512398f5c72c78299c7.zip |
* Replace references to deprecated ${IMAGE} with equivalent ${D}.
* Remove redundant trailing slashes and fix quoting.
svn path=/main/trunk/; revision=8501
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-x | bin/ebuild.sh | 9 |
1 files changed, 3 insertions, 6 deletions
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. |