From: Zac Medico Date: Mon, 9 Mar 2009 09:13:33 +0000 (-0000) Subject: Inside dyn_unpack(), only call pre/post phase hooks when src_unpack is X-Git-Tag: v2.2_rc24~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1fa892df9a8eab70b9f6831ccfb0e4bb1d3c5ac0;p=portage.git Inside dyn_unpack(), only call pre/post phase hooks when src_unpack is called (when .unpacked does not already exist). svn path=/main/trunk/; revision=12804 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 803a9c71c..0c3a20a58 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -640,7 +640,6 @@ dyn_setup() { } dyn_unpack() { - [ "$(type -t pre_src_unpack)" == "function" ] && qa_call pre_src_unpack local newstuff="no" if [ -e "${WORKDIR}" ]; then local x @@ -673,7 +672,6 @@ dyn_unpack() { if [ -e "${WORKDIR}" ]; then if [ "$newstuff" == "no" ]; then vecho ">>> WORKDIR is up-to-date, keeping..." - [ "$(type -t post_src_unpack)" == "function" ] && qa_call post_src_unpack return 0 fi fi @@ -682,6 +680,7 @@ dyn_unpack() { install -m${PORTAGE_WORKDIR_MODE:-0700} -d "${WORKDIR}" || die "Failed to create dir '${WORKDIR}'" fi cd "${WORKDIR}" || die "Directory change failed: \`cd '${WORKDIR}'\`" + [ "$(type -t pre_src_unpack)" == "function" ] && qa_call pre_src_unpack vecho ">>> Unpacking source..." ebuild_phase src_unpack touch "${PORTAGE_BUILDDIR}/.unpacked" || die "IO Failure -- Failed 'touch .unpacked' in ${PORTAGE_BUILDDIR}"