1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

- 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.
This commit is contained in:
Clement Laforet 2005-10-16 09:56:45 +00:00
parent 7d35098aec
commit 0cfb7f53f2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145541
2 changed files with 6 additions and 2 deletions

View File

@ -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; \

View File

@ -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; \