git: 05b3a45cd065 - main - release: Don't try to fetch distfiles for pkgbase

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Tue, 04 Nov 2025 00:35:48 UTC
The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=05b3a45cd065c93cc1262d31675e3e102784400a

commit 05b3a45cd065c93cc1262d31675e3e102784400a
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2025-11-03 21:42:56 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-11-04 00:32:13 +0000

    release: Don't try to fetch distfiles for pkgbase
    
    In order to comply with the require that GCE images must include their
    source code, we fetch distfiles for all of the packages installed into
    GCE images.  This fails for obvious reasons for packages with an origin
    of base/*; filter those out to generate the list to fetch.
    
    Reviewed by:    ivy
    MFC after:      3 days
    Differential Revision:  https://reviews.freebsd.org/D53568
---
 release/tools/gce.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/release/tools/gce.conf b/release/tools/gce.conf
index b0a65c2981e1..ef1cf7e8f985 100644
--- a/release/tools/gce.conf
+++ b/release/tools/gce.conf
@@ -100,7 +100,7 @@ EOF
 	fi
 	if [ -e "${DESTDIR}/../ftp/ports.txz" ]; then
 		tar fxJ ${DESTDIR}/../ftp/ports.txz -C ${DESTDIR}
-		_INSTALLED_PACKAGES=$(pkg -r ${DESTDIR} info -o -q -a)
+		_INSTALLED_PACKAGES=$(pkg -r ${DESTDIR} info -o -q -a | grep -v ^base/)
 		for PACKAGE in ${_INSTALLED_PACKAGES}; do
 			make -C ${DESTDIR}/usr/ports/${PACKAGE} fetch \
 			    DISTDIR=${DESTDIR}/usr/ports/distfiles