summaryrefslogtreecommitdiffstats
path: root/devel/portmk/Mk
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2005-10-16 09:56:45 +0000
committerclement <clement@FreeBSD.org>2005-10-16 09:56:45 +0000
commit815f334950beb179142398255ecdcbf3af019e49 (patch)
tree7c7c560a8519a1df0124cac0d58882441b50ae5b /devel/portmk/Mk
parentb9cf5d5823b1181428d01a48a36c042829fa44a8 (diff)
downloadFreeBSD-ports-815f334950beb179142398255ecdcbf3af019e49.zip
FreeBSD-ports-815f334950beb179142398255ecdcbf3af019e49.tar.gz
- Add a workaround to new checksum target to keep backward compatibility.
If checksum should be equal to IGNORE and it doesn't have an entry in distinfo check if it has already been "registered". In other words, if they're no SHA256 checksum (which is the case IRL), fallback to MD5 checksum results.
Diffstat (limited to 'devel/portmk/Mk')
-rw-r--r--devel/portmk/Mk/bsd.port.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/devel/portmk/Mk/bsd.port.mk b/devel/portmk/Mk/bsd.port.mk
index 961cf08..d02068a 100644
--- a/devel/portmk/Mk/bsd.port.mk
+++ b/devel/portmk/Mk/bsd.port.mk
@@ -4188,6 +4188,7 @@ checksum: fetch check-checksum-algorithms
pattern="`${ECHO_CMD} $$file | ${SED} -e 's/\./\\\\./g'`"; \
\
ignored="true"; \
+ alreadymatched="false"; \
for alg in ${CHECKSUM_ALGORITHMS:U}; do \
ignore="false"; \
eval alg_executable=\$$$$alg; \
@@ -4201,13 +4202,14 @@ checksum: fetch check-checksum-algorithms
if [ $$ignore = "false" ]; then \
if [ -z "$$CKSUM" ]; then \
${ECHO_MSG} "=> No $$alg checksum for $$file recorded (expected IGNORE)"; \
- OK="false"; \
+ OK="$$alreadymatched"; \
elif [ $$CKSUM != "IGNORE" ]; then \
${ECHO_MSG} "=> $$alg Checksum for $$file is not set to IGNORE in distinfo file even though"; \
${ECHO_MSG} " the file is in the "'$$'"{IGNOREFILES} list."; \
OK="false"; \
else \
ignored="false"; \
+ alreadymatched="true"; \
fi; \
fi; \
done; \
OpenPOWER on IntegriCloud