summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-06-24 23:57:26 +0000
committerZac Medico <zmedico@gentoo.org>2006-06-24 23:57:26 +0000
commit502b0b9ff911eb31342b6d50c8130e44d028da78 (patch)
tree15b495a2ad23f667f6c58d26b5f9c03158a98909 /bin/ebuild.sh
parentMove the counter_tick methods from the dbapi class to the vardbapi class. (diff)
downloadportage-multirepo-502b0b9ff911eb31342b6d50c8130e44d028da78.tar.gz
portage-multirepo-502b0b9ff911eb31342b6d50c8130e44d028da78.tar.bz2
portage-multirepo-502b0b9ff911eb31342b6d50c8130e44d028da78.zip
Skip the install phase when ${PORTAGE_BUILDDIR}/.installed exists. See bug #137864.
svn path=/main/trunk/; revision=3646
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 651fdecb..73fe3a4f 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"