git: c0dbc49ab3f7 - main - release: fix ports checkout if /usr/ports does not exist

Glen Barber gjb at FreeBSD.org
Wed May 12 16:09:20 UTC 2021


The branch main has been updated by gjb:

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

commit c0dbc49ab3f7e43a2972c932fcd2b2ed4d06448b
Author:     Glen Barber <gjb at FreeBSD.org>
AuthorDate: 2021-05-12 16:08:59 +0000
Commit:     Glen Barber <gjb at FreeBSD.org>
CommitDate: 2021-05-12 16:08:59 +0000

    release: fix ports checkout if /usr/ports does not exist
    
    Reported by:    Yasuhiro Kimura
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 release/release.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/release/release.sh b/release/release.sh
index a448361b86a6..75278a12daa6 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -213,6 +213,8 @@ chroot_setup() {
 	if [ -z "${NOPORTS}" ] && [ -z "${PORTS_UPDATE_SKIP}" ]; then
 		if [ -d "${CHROOTDIR}/usr/ports/.git" ]; then
 			git -C ${CHROOTDIR}/usr/ports pull -q
+		else
+			${VCSCMD} ${PORT} -b ${PORTBRANCH} ${CHROOTDIR}/usr/ports
 		fi
 	fi
 


More information about the dev-commits-src-all mailing list