From 502b0b9ff911eb31342b6d50c8130e44d028da78 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 24 Jun 2006 23:57:26 +0000 Subject: Skip the install phase when ${PORTAGE_BUILDDIR}/.installed exists. See bug #137864. svn path=/main/trunk/; revision=3646 --- bin/ebuild.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 651fdecb3..73fe3a4fd 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -996,6 +996,11 @@ dyn_test() { dyn_install() { [ -z "$PORTAGE_BUILDDIR" ] && die "${FUNCNAME}: PORTAGE_BUILDDIR is unset" + if [ "${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 + fi trap "abort_install" SIGINT SIGQUIT [ "$(type -t pre_src_install)" == "function" ] && pre_src_install rm -rf "${PORTAGE_BUILDDIR}/image" -- cgit v1.2.3-1-g7c22