summaryrefslogtreecommitdiffstats
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
commit141df07f3b6132809988dd6f4f42f4af73d9c138 (patch)
treef531c401ee31f75a36c90b9720127e35906496c8
parent55cfac0c2ce6e101f2816ff4d9449e492663afee (diff)
downloadFreeBSD-src-141df07f3b6132809988dd6f4f42f4af73d9c138.zip
FreeBSD-src-141df07f3b6132809988dd6f4f42f4af73d9c138.tar.gz
Delete package and links when pkg_create fails.
-rw-r--r--share/mk/bsd.port.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 3ade193..5ed4647 100644
--- a/share/mk/bsd.port.mk
+++ b/share/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