From 1af0c40b1300651ca03a7509f49f152c1e595736 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 1 Nov 2011 19:17:19 -0700 Subject: Add EPREFIX and ED support in all ebuild helpers. This allows our prefix tests to use helpers like insinto, doins, and dosym. --- bin/phase-functions.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bin/phase-functions.sh') diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh index 164b309e8..9dcbf76f8 100644 --- a/bin/phase-functions.sh +++ b/bin/phase-functions.sh @@ -498,8 +498,13 @@ dyn_install() { fi trap "abort_install" SIGINT SIGQUIT ebuild_phase pre_src_install - rm -rf "${PORTAGE_BUILDDIR}/image" - mkdir "${PORTAGE_BUILDDIR}/image" + + _x=${ED} + case "$EAPI" in 0|1|2) _x=${D} ;; esac + rm -rf "${D}" + mkdir -p "${_x}" + unset _x + if [[ -d $S ]] ; then cd "${S}" elif has $EAPI 0 1 2 3 3_pre2 ; then -- cgit v1.2.3-1-g7c22