summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormycroft <mycroft>1998-07-26 09:27:15 +0000
committermycroft <mycroft>1998-07-26 09:27:15 +0000
commit7632e13c7f0bd9eaf2fc356ab87448fa426832b6 (patch)
treec3878a1b2e97b1504d046485d623da948d014be7
parentaa97ca39b8be0bc427f6aa112810baef4ff3ecb0 (diff)
downloadpkgsrc-7632e13c7f0bd9eaf2fc356ab87448fa426832b6.tar.gz
Use a direct comparison rather than a regexp match when looking for checksums.
-rw-r--r--mk/bsd.pkg.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 5c5c1dd9606..fc5454c625a 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.127 1998/07/24 14:13:46 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.128 1998/07/26 09:27:15 mycroft Exp $
#
# This file is in the public domain.
#
@@ -1388,7 +1388,7 @@ checksum: fetch
(cd ${DISTDIR}; OK="true"; \
for file in ${_CKSUMFILES}; do \
CKSUM=`${MD5} < $$file`; \
- CKSUM2=`${AWK} '/^MD5 \('$$file'\)/{ print $$4 }' ${MD5_FILE}`; \
+ CKSUM2=`${AWK} '$$1 == "MD5" && $$2 == "\('$$file'\)"{print $$4;}' ${MD5_FILE}`; \
if [ "$$CKSUM2" = "" ]; then \
${ECHO_MSG} ">> No checksum recorded for $$file."; \
OK="false"; \
@@ -1404,7 +1404,7 @@ checksum: fetch
fi; \
done; \
for file in ${_IGNOREFILES}; do \
- CKSUM2=`${AWK} '/\('$$file'\)/{ print $$4 }' ${MD5_FILE}`; \
+ CKSUM2=`${AWK} '$$1 == "MD5" && $$2 == "\('$$file'\)"{print $$4;}' ${MD5_FILE}`; \
if [ "$$CKSUM2" = "" ]; then \
${ECHO_MSG} ">> No checksum recorded for $$file, file is in "'$$'"{IGNOREFILES} list."; \
OK="false"; \