diff options
author | mycroft <mycroft@pkgsrc.org> | 1998-07-26 09:27:15 +0000 |
---|---|---|
committer | mycroft <mycroft@pkgsrc.org> | 1998-07-26 09:27:15 +0000 |
commit | 460b9f3c111f6f1bf876db36f83acdfb5fbd61ec (patch) | |
tree | c3878a1b2e97b1504d046485d623da948d014be7 | |
parent | 8933f6cacae04fc099faaaf945d76192d4fa67fe (diff) | |
download | pkgsrc-460b9f3c111f6f1bf876db36f83acdfb5fbd61ec.tar.gz |
Use a direct comparison rather than a regexp match when looking for checksums.
-rw-r--r-- | mk/bsd.pkg.mk | 6 |
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"; \ |