summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2005-04-16 09:26:22 +0000
committeragc <agc@pkgsrc.org>2005-04-16 09:26:22 +0000
commit82419dde61372d755d2348586775daace1c0f7d1 (patch)
tree65ea8bb685d1e87b90374169349947ff460ff77e /mk
parent9318dc5a01755641efada615e6ef6ae2a45f0797 (diff)
downloadpkgsrc-82419dde61372d755d2348586775daace1c0f7d1.tar.gz
Don't fail if there are multiple digest values for the same file with the
same algorithm in the distinfo file - pointed out by Robert Elz in PR 29973. Additional testing by wiz - thanks!
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 4eb19c8671c..b439bd8b633 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1612 2005/04/16 09:20:18 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1613 2005/04/16 09:26:22 agc Exp $
#
# This file is in the public domain.
#
@@ -1305,7 +1305,7 @@ _FETCH_FILE= \
alg=${PATCH_DIGEST_ALGORITHM};\
fi; \
CKSUM=`${DIGEST} $$alg < ${_DISTDIR}/$$bfile`; \
- CKSUM2=`${AWK} '$$1 == "'$$alg'" && $$2 == "('$$file')" {print $$4;}' <${DISTINFO_FILE}`; \
+ CKSUM2=`${AWK} '$$1 == "'$$alg'" && $$2 == "('$$file')" {print $$4; exit}' <${DISTINFO_FILE}`; \
if [ "$$CKSUM" = "$$CKSUM2" -o "$$CKSUM2" = "IGNORE" ]; then \
break; \
else \
@@ -3803,7 +3803,7 @@ checksum: fetch uptodate-digest
if [ "X$$file" = X"" ]; then continue; fi; \
filesummed=false; \
for a in ${DIGEST_ALGORITHMS}; do \
- CKSUM2=`${AWK} 'NF == 4 && $$1 == "'$$a'" && $$2 == "('$$file')" && $$3 == "=" {print $$4;}' ${DISTINFO_FILE}`; \
+ CKSUM2=`${AWK} 'NF == 4 && $$1 == "'$$a'" && $$2 == "('$$file')" && $$3 == "=" {print $$4; exit}' ${DISTINFO_FILE}`; \
case "$${CKSUM2}" in \
"") ${ECHO_MSG} "=> No $$a checksum recorded for $$file."; \
;; \
@@ -3828,7 +3828,7 @@ checksum: fetch uptodate-digest
done; \
for file in "" ${_IGNOREFILES}; do \
if [ "X$$file" = X"" ]; then continue; fi; \
- CKSUM2=`${AWK} 'NF == 4 && $$3 == "=" && $$2 == "('$$file')"{print $$4;}' ${DISTINFO_FILE}`; \
+ CKSUM2=`${AWK} 'NF == 4 && $$3 == "=" && $$2 == "('$$file')"{print $$4; exit}' ${DISTINFO_FILE}`; \
if [ "$$CKSUM2" = "" ]; then \
${ECHO_MSG} "=> No checksum recorded for $$file, file is in "'$$'"{IGNOREFILES} list."; \
OK="false"; \