Do not unconditionally build git from ports if it already exists.

Sponsored by:	Rubicon Communications, LLC (netgate.com)
This commit is contained in:
Glen Barber 2020-08-27 14:29:06 +00:00
parent 6e7be14e7f
commit eade353551
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/release-git/; revision=364866

View file

@ -265,7 +265,8 @@ extra_chroot_setup() {
# Install git from ports or packages if the ports tree is
# available and VCSCMD is unset.
if [ -d ${CHROOTDIR}/usr/ports ]; then
_gitcmd="$(which git)"
if [ -d ${CHROOTDIR}/usr/ports -a ! -z "${_gitcmd}" ]; then
# Trick the ports 'run-autotools-fixup' target to do the right
# thing.
_OSVERSION=$(chroot ${CHROOTDIR} /usr/bin/uname -U)