pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/checksum When verifying checksums of distfiles, sim...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ed86fd1f438e
branches:  trunk
changeset: 532596:ed86fd1f438e
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Aug 24 03:30:54 2007 +0000

description:
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:

 mk/checksum/checksum.mk |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 78b4bfca39f5 -r ed86fd1f438e mk/checksum/checksum.mk
--- a/mk/checksum/checksum.mk   Fri Aug 24 03:12:33 2007 +0000
+++ b/mk/checksum/checksum.mk   Fri Aug 24 03:30:54 2007 +0000
@@ -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 @@
 
 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 @@
                ${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}           \



Home | Main Index | Thread Index | Old Index