diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-11-01 19:17:19 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-11-01 19:17:19 -0700 |
commit | 1af0c40b1300651ca03a7509f49f152c1e595736 (patch) | |
tree | 6d967ae665bf98c9ba8219fb812a9678a127a57e /bin/phase-functions.sh | |
parent | 889853171246ab1063bb5015caf41a41761f5424 (diff) | |
download | portage-1af0c40b1300651ca03a7509f49f152c1e595736.tar.gz portage-1af0c40b1300651ca03a7509f49f152c1e595736.tar.bz2 portage-1af0c40b1300651ca03a7509f49f152c1e595736.zip |
Add EPREFIX and ED support in all ebuild helpers.
This allows our prefix tests to use helpers like insinto, doins, and dosym.
Diffstat (limited to 'bin/phase-functions.sh')
-rw-r--r-- | bin/phase-functions.sh | 9 |
1 files changed, 7 insertions, 2 deletions
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 |