svn commit: r348264 - user/cperciva/freebsd-update-build/scripts

Gordon Tetlow gordon at FreeBSD.org
Sat May 25 04:15:49 UTC 2019


Author: gordon
Date: Sat May 25 04:15:48 2019
New Revision: 348264
URL: https://svnweb.freebsd.org/changeset/base/348264

Log:
  Only fetch the iso (and hence overwrite) if the file isn't already there.
  
  This allows us to drop the iso in the right place and avoid redownload.

Modified:
  user/cperciva/freebsd-update-build/scripts/build.subr

Modified: user/cperciva/freebsd-update-build/scripts/build.subr
==============================================================================
--- user/cperciva/freebsd-update-build/scripts/build.subr	Sat May 25 03:18:41 2019	(r348263)
+++ user/cperciva/freebsd-update-build/scripts/build.subr	Sat May 25 04:15:48 2019	(r348264)
@@ -311,7 +311,9 @@ fetchiso () {
 	# for FTP installs.  The FreeBSD 4.7-RELEASE ISO and FTP
 	# files were not identical, but this should never happen
 	# again.
-	fetch -o ${WORKDIR}/iso.img -rR ${ISO} 2>&1
+	if ! [ -f "${WORKDIR}/iso.img" ]; then
+		fetch -o ${WORKDIR}/iso.img -rR ${ISO} 2>&1
+	fi
 
 	log "Verifying dvd1 hash"
 


More information about the svn-src-user mailing list