release: fix ports checkout if /usr/ports does not exist
Reported by: Yasuhiro Kimura
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
@@ -213,6 +213,8 @@ chroot_setup() {
|
|||||||
if [ -z "${NOPORTS}" ] && [ -z "${PORTS_UPDATE_SKIP}" ]; then
|
if [ -z "${NOPORTS}" ] && [ -z "${PORTS_UPDATE_SKIP}" ]; then
|
||||||
if [ -d "${CHROOTDIR}/usr/ports/.git" ]; then
|
if [ -d "${CHROOTDIR}/usr/ports/.git" ]; then
|
||||||
git -C ${CHROOTDIR}/usr/ports pull -q
|
git -C ${CHROOTDIR}/usr/ports pull -q
|
||||||
|
else
|
||||||
|
${VCSCMD} ${PORT} -b ${PORTBRANCH} ${CHROOTDIR}/usr/ports
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user