Avoid excessively invoking 'pkg bootstrap' if already done.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
gjb 2016-01-28 23:59:34 +00:00
parent 319532475b
commit d935c3599c

View File

@ -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}