aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2005-10-16 17:56:45 +0800
committerclement <clement@FreeBSD.org>2005-10-16 17:56:45 +0800
commit815f334950beb179142398255ecdcbf3af019e49 (patch)
tree7c7c560a8519a1df0124cac0d58882441b50ae5b /devel
parentb9cf5d5823b1181428d01a48a36c042829fa44a8 (diff)
downloadfreebsd-ports-gnome-815f334950beb179142398255ecdcbf3af019e49.tar.gz
freebsd-ports-gnome-815f334950beb179142398255ecdcbf3af019e49.tar.zst
freebsd-ports-gnome-815f334950beb179142398255ecdcbf3af019e49.zip
- 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')
-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 961cf08fb027..d02068ae5374 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; \