mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 19:28:36 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/release-git/; revision=364866
|
@ -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…
Reference in a new issue