From d935c3599c6ec95a219b2f738ac8c908a7eb0e63 Mon Sep 17 00:00:00 2001 From: gjb Date: Thu, 28 Jan 2016 23:59:34 +0000 Subject: [PATCH] Avoid excessively invoking 'pkg bootstrap' if already done. Sponsored by: The FreeBSD Foundation --- Makefile.inc1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index e49ed4015505..3b13989477f3 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1371,7 +1371,9 @@ REPODIR= ${MAKEOBJDIRPREFIX}${.CURDIR}/repo PKGSIGNKEY?= # empty _pkgbootstrap: +.if !exists(${LOCALBASE}/sbin/pkg) @env ASSUME_ALWAYS_YES=YES pkg bootstrap +.endif packages: _pkgbootstrap @mkdir -p ${WSTAGEDIR} ${KSTAGEDIR} ${REPODIR}