svn commit: r325760 - head/Mk
Bryan Drewery
bdrewery at FreeBSD.org
Sat Aug 31 01:16:25 UTC 2013
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; \
More information about the svn-ports-head
mailing list