In dyn_unpack(), don't force a new unpack when the ebuild mtime is newer
authorZac Medico <zmedico@gentoo.org>
Fri, 27 Mar 2009 04:46:20 +0000 (04:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 27 Mar 2009 04:46:20 +0000 (04:46 -0000)
than $WORKDIR, since that may be too touchy. The user can easily call
the clean phase explicitly if they really want it.

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

bin/ebuild.sh

index d36c81e0cbe43df7066fa29d7c401c42f190bf9c..04cfe6369bc7fa9323ff0a7fff9b7352f1d5163c 100755 (executable)
@@ -655,10 +655,7 @@ dyn_unpack() {
                                break
                        fi
                done
-               if [ "${EBUILD}" -nt "${WORKDIR}" ] && ! hasq keepwork ${FEATURES} ; then
-                       vecho ">>> ${EBUILD} has been updated; recreating WORKDIR..."
-                       newstuff="yes"
-               elif [ ! -f "${PORTAGE_BUILDDIR}/.unpacked" ]; then
+               if [ ! -f "${PORTAGE_BUILDDIR}/.unpacked" ] ; then
                        vecho ">>> Not marked as unpacked; recreating WORKDIR..."
                        newstuff="yes"
                fi