From d7a8d3868c82c9cb88ea8b91ef97e73e28567a26 Mon Sep 17 00:00:00 2001 From: Glen Barber 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}