mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
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:
parent
69b6abb7b2
commit
c0dbc49ab3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue