diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-06-24 23:57:26 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-06-24 23:57:26 +0000 |
commit | 502b0b9ff911eb31342b6d50c8130e44d028da78 (patch) | |
tree | 15b495a2ad23f667f6c58d26b5f9c03158a98909 | |
parent | 580b40c013ec3bdb61e9e7f338348f09a59a969a (diff) | |
download | portage-502b0b9ff911eb31342b6d50c8130e44d028da78.tar.gz portage-502b0b9ff911eb31342b6d50c8130e44d028da78.tar.bz2 portage-502b0b9ff911eb31342b6d50c8130e44d028da78.zip |
Skip the install phase when ${PORTAGE_BUILDDIR}/.installed exists. See bug #137864.
svn path=/main/trunk/; revision=3646
-rwxr-xr-x | bin/ebuild.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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" |