git: 3601528f19c3 - main - Makefile.inc1: define PKG_VERSION_FROM only if $REPO/latest symlink exists
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jun 2025 01:21:44 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=3601528f19c30b633e3c5631b74e2bf79705aac9 commit 3601528f19c30b633e3c5631b74e2bf79705aac9 Author: Siva Mahadevan <me@svmhdvn.name> AuthorDate: 2024-10-04 22:03:27 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2025-06-13 01:21:44 +0000 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 --- Makefile.inc1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 42a5f5cfb0a9..e56c40c114fc 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -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