Make dyn_clean() consistent wrt removal of ${PORTAGE_BUILDDIR}/image and
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 13:08:45 +0000 (13:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 13:08:45 +0000 (13:08 -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). (trunk r9527)

svn path=/main/branches/2.1.2/; revision=9579

bin/ebuild.sh

index fb2e2a3a58e2adee116ee5c9a4f6e86c7e27db6b..b9abc47900c829a817b3ac722eaa44fec6ab41b6 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}"