summaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1995-05-12 07:32:59 +0000
committerasami <asami@FreeBSD.org>1995-05-12 07:32:59 +0000
commit244c78df660397608625deef3db1e44bc98f516c (patch)
tree4c82c76b2a577c1bdee94e25229117d889b16114 /Mk
parentff7e4e37075fa1885bf9671160334faa5162d987 (diff)
downloadFreeBSD-ports-244c78df660397608625deef3db1e44bc98f516c.zip
FreeBSD-ports-244c78df660397608625deef3db1e44bc98f516c.tar.gz
Delete package and links when pkg_create fails.
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 3ade193..5ed4647 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.156 1995/05/09 00:31:54 asami Exp $
+# $Id: bsd.port.mk,v 1.157 1995/05/10 09:30:09 asami Exp $
#
# Please view me with 4 column tabs!
@@ -945,9 +945,12 @@ do-package:
fi; \
fi; \
fi; \
- ${PKG_CMD} ${PKG_ARGS} ${PKGFILE}; \
- if [ -d ${PACKAGES} ]; then \
- ${MAKE} ${.MAKEFLAGS} package-links; \
+ if ${PKG_CMD} ${PKG_ARGS} ${PKGFILE}; then \
+ if [ -d ${PACKAGES} ]; then \
+ ${MAKE} ${.MAKEFLAGS} package-links; \
+ fi; \
+ else \
+ ${MAKE} ${.MAKEFLAGS} delete-package; \
fi; \
fi
.endif
OpenPOWER on IntegriCloud