If pkg_create fails, you may still have a partial package out there...

Owned by root. Ouch.
This commit is contained in:
espie 2001-09-05 11:59:54 +00:00
parent 44cf2ff93f
commit 4e9c296182

View File

@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.450 2001/09/05 09:13:18 espie Exp $$
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.451 2001/09/05 11:59:54 espie Exp $$
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -1778,7 +1778,7 @@ _package: ${_PKG_PREREQ}
mode=`id -u`:`id -g`; ${SUDO} ${CHOWN} $${mode} ${PKGFILE${SUBPACKAGE}}; \
${MAKE} package-links; \
else \
${MAKE} delete-package; \
${SUDO} ${MAKE} delete-package; \
exit 1; \
fi
# End of PACKAGE.