Avoid excessively invoking 'pkg bootstrap' if already done.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2016-01-28 23:59:34 +00:00
parent a5a71822df
commit d7a8d3868c

View File

@ -1371,7 +1371,9 @@ REPODIR= ${MAKEOBJDIRPREFIX}${.CURDIR}/repo
PKGSIGNKEY?= # empty PKGSIGNKEY?= # empty
_pkgbootstrap: _pkgbootstrap:
.if !exists(${LOCALBASE}/sbin/pkg)
@env ASSUME_ALWAYS_YES=YES pkg bootstrap @env ASSUME_ALWAYS_YES=YES pkg bootstrap
.endif
packages: _pkgbootstrap packages: _pkgbootstrap
@mkdir -p ${WSTAGEDIR} ${KSTAGEDIR} ${REPODIR} @mkdir -p ${WSTAGEDIR} ${KSTAGEDIR} ${REPODIR}