Date: Sat, 31 Aug 2013 01:16:25 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r325760 - head/Mk Message-ID: <201308310116.r7V1GPVH061974@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Sat Aug 31 01:16:24 2013 New Revision: 325760 URL: http://svnweb.freebsd.org/changeset/ports/325760 Log: - make checksum: When encountering a checksum mismatch, delete the file before retrying. The previous behavior would try to download a range of the new bytes and then hit the 'Requested Range Not Satisfiable' error and never actually redownload the file. This fixes cases where a port is rerolled and distinfo updated, but users have a bad distfile sitting there that they would manually need to remove. Reviewed by: bapt Reported by: danfe With hat: portmgr Modified: head/Mk/bsd.port.mk Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Sat Aug 31 01:09:44 2013 (r325759) +++ head/Mk/bsd.port.mk Sat Aug 31 01:16:24 2013 (r325760) @@ -4769,6 +4769,7 @@ checksum: fetch check-checksum-algorithm ${ECHO_MSG} "=> $$alg Checksum mismatch for $$file."; \ refetchlist="$$refetchlist$$file "; \ OK="$${OK:-retry}"; \ + [ "$${OK}" = "retry" -a ${FETCH_REGET} -gt 0 ] && ${RM} -f $${file}; \ ignored="false"; \ fi; \ fi; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308310116.r7V1GPVH061974>