mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-18 17:00:49 +01:00
Delete package and links when pkg_create fails.
This commit is contained in:
parent
ba0879629f
commit
25254cc62d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8467
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user