Make dyn_clean() consistent wrt removal of ${PORTAGE_BUILDDIR}/image and
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 05:03:55 +0000 (05:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 05:03:55 +0000 (05:03 -0000)
${PORTAGE_BUILDDIR}/.installed since otherwise with FEATURES=keepwork
dyn_install() will not call src_install() as necessary to repopulate
${PORTAGE_BUILDDIR}/image (resulting in install_qa_check failure due
to absence of ${PORTAGE_BUILDDIR}/image).

svn path=/main/trunk/; revision=9527

bin/ebuild.sh

index 33c6d12c34e4c03316602ffd2c4180ee13cb624f..8f22fcab3b676d4078c1264e1d4c874209db5a3e 100755 (executable)
@@ -689,6 +689,7 @@ dyn_clean() {
        fi
 
        rm -rf "${PORTAGE_BUILDDIR}/image" "${PORTAGE_BUILDDIR}/homedir"
+       rm -f "${PORTAGE_BUILDDIR}/.installed"
 
        if ! hasq keeptemp $FEATURES && ! hasq keepwork $FEATURES ; then
                rm -rf "${T}"
@@ -700,7 +701,6 @@ dyn_clean() {
                rm -rf "${PORTAGE_BUILDDIR}/.unpacked"
                rm -rf "${PORTAGE_BUILDDIR}/.compiled"
                rm -rf "${PORTAGE_BUILDDIR}/.tested"
-               rm -rf "${PORTAGE_BUILDDIR}/.installed"
                rm -rf "${PORTAGE_BUILDDIR}/.packaged"
                rm -rf "${PORTAGE_BUILDDIR}/build-info"
                rm -rf "${WORKDIR}"