pkgbase: limit PKG_VERSION_FROM calculation to real-update-packages

PKG_ABI is defined in some other targets that do not need to shell out and
calculate PKG_VERSION_FROM. Moreover, it produces extra errors when
bootstrapping an initial pkgbase repo, as the /latest link doesn't exist
yet.
This commit is contained in:
Kyle Evans 2021-01-18 13:34:54 -06:00
parent 76ad42abf9
commit 95ae95d413

View file

@ -1872,7 +1872,7 @@ _pkgbootstrap: .PHONY
PKG_ABI!=${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI
.endif
.if !defined(PKG_VERSION_FROM)
.if !defined(PKG_VERSION_FROM) && make(real-update-packages)
.if defined(PKG_ABI)
PKG_VERSION_FROM!=/usr/bin/readlink ${REPODIR}/${PKG_ABI}/latest
.endif