When dyn_unpack() automatically cleans ${WORKDIR}, also remove things
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Mar 2008 22:47:54 +0000 (22:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Mar 2008 22:47:54 +0000 (22:47 -0000)
like .unpacked and .compiled so that the state is consistent.

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

bin/ebuild.sh

index 8f22fcab3b676d4078c1264e1d4c874209db5a3e..cc42e8581cfaad0624c14e630e096a8bd7b4308a 100755 (executable)
@@ -649,6 +649,7 @@ dyn_unpack() {
        fi
        if [ "${newstuff}" == "yes" ]; then
                # We don't necessarily have privileges to do a full dyn_clean here.
+               rm -rf "${PORTAGE_BUILDDIR}"/{.unpacked,.compiled,.tested,.packaged,build-info}
                rm -rf "${WORKDIR}"
                if [ -d "${T}" ] && \
                        ! hasq keeptemp $FEATURES && ! hasq keepwork $FEATURES ; then