diff options
author | jlam <jlam> | 2007-08-24 03:30:54 +0000 |
---|---|---|
committer | jlam <jlam> | 2007-08-24 03:30:54 +0000 |
commit | b8c0874ed796ad450f6bf9779bb5f6b4f55dfb51 (patch) | |
tree | 741cdf0cf19e357280b8a5d6161dcc5d279e21e9 /mk/checksum | |
parent | ae899fc295a0f8e502707ec3bea7c09d92934420 (diff) | |
download | pkgsrc-b8c0874ed796ad450f6bf9779bb5f6b4f55dfb51.tar.gz |
When verifying checksums of distfiles, simply verify every checksum
provided in the distinfo file for those distfiles, rather than checking
specifically for the ones listed in _DIGEST_ALGORITHMS. If a distinfo
file actually provides checksums for other algorithms, e.g. TIGER,
then go ahead and verify them too.
Diffstat (limited to 'mk/checksum')
-rw-r--r-- | mk/checksum/checksum.mk | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mk/checksum/checksum.mk b/mk/checksum/checksum.mk index b7ce3b5c647..8b7e50f03b2 100644 --- a/mk/checksum/checksum.mk +++ b/mk/checksum/checksum.mk @@ -1,4 +1,4 @@ -# $NetBSD: checksum.mk,v 1.9 2007/08/24 03:12:33 jlam Exp $ +# $NetBSD: checksum.mk,v 1.10 2007/08/24 03:30:54 jlam Exp $ # # See bsd.checksum.mk for helpful comments. # @@ -34,11 +34,9 @@ _COOKIE.checksum= ${_COOKIE.extract} checksum: do-checksum do-checksum: -.for _alg_ in ${_DIGEST_ALGORITHMS} ${RUN} set -e; \ ${TEST} ! -f ${_COOKIE.checksum} || exit 0; \ - if cd ${DISTDIR} && ${_CHECKSUM_CMD} -a ${_alg_:Q} \ - ${DISTINFO_FILE} ${_CKSUMFILES}; then \ + if cd ${DISTDIR} && ${_CHECKSUM_CMD} ${DISTINFO_FILE} ${_CKSUMFILES}; then \ ${TRUE}; \ else \ ${ERROR_MSG} "Make sure the Makefile and checksum file (${DISTINFO_FILE})"; \ @@ -46,7 +44,6 @@ do-checksum: ${ERROR_MSG} "\"${MAKE} NO_CHECKSUM=yes [other args]\"."; \ exit 1; \ fi -.endfor _DISTINFO_CMD= ${SETENV} DIGEST=${TOOLS_DIGEST:Q} SED=${TOOLS_SED:Q} \ TEST=${TOOLS_TEST:Q} WC=${TOOLS_WC:Q} \ |