if user has FEATURES=noauto then dont check lame .installed file
authorMike Frysinger <vapier@gentoo.org>
Wed, 6 Sep 2006 04:48:10 +0000 (04:48 -0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 6 Sep 2006 04:48:10 +0000 (04:48 -0000)
svn path=/main/trunk/; revision=4411

bin/ebuild.sh

index 6dda415bdbc06bc039fe1e5f3ace7aed2dafd8f5..d2a40c35015db0aeb9b20d4697cd5541c45a40e5 100755 (executable)
@@ -994,7 +994,9 @@ dyn_test() {
 
 dyn_install() {
        [ -z "$PORTAGE_BUILDDIR" ] && die "${FUNCNAME}: PORTAGE_BUILDDIR is unset"
-       if [ "${PORTAGE_BUILDDIR}/.installed" -nt "${WORKDIR}" ]; then
+       if hasq noauto $FEATURES ; then
+               rm -f "${PORTAGE_BUILDDIR}/.installed"
+       elif [[ ${PORTAGE_BUILDDIR}/.installed -nt ${WORKDIR} ]] ; then
                vecho ">>> It appears that '${PF}' is already installed; skipping."
                vecho ">>> Remove '${PORTAGE_BUILDDIR}/.installed' to force install."
                return 0