Do not unconditionally build git from ports if it already exists.
Sponsored by: Rubicon Communications, LLC (netgate.com)
This commit is contained in:
parent
6e7be14e7f
commit
eade353551
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user