Makefile.inc1: define PKG_VERSION_FROM only if $REPO/latest symlink exists

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1445
This commit is contained in:
Siva Mahadevan
2024-10-04 18:03:27 -04:00
committed by Warner Losh
parent aae67a2c2b
commit 3601528f19
+1 -1
View File
@@ -2000,7 +2000,7 @@ PKG_EXT= pkg
.endif
.if !defined(PKG_VERSION_FROM) && make(real-update-packages)
.if exists(${PKG_ABI_FILE}) && exists(${REPODIR}/${PKG_ABI})
.if exists(${PKG_ABI_FILE}) && exists(${REPODIR}/${PKG_ABI}/latest)
PKG_VERSION_FROM!=/usr/bin/readlink ${REPODIR}/${PKG_ABI}/latest
PKG_VERSION_FROM_DIR= ${REPODIR}/${PKG_ABI}/${PKG_VERSION_FROM}
# Determine the name of the branch base on the version