From 98b761a5576204b9cd0c8a441f2eeb4d530cadd6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Mon, 2 May 2022 20:26:46 +0000 Subject: [PATCH] download-rust-crate: Switch from MD5 to BLAKE2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit https://wiki.ipfire.org/devel/telco/2022-05-02 Signed-off-by: Peter Müller --- tools/download-rust-crate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/download-rust-crate b/tools/download-rust-crate index bae6b60bed..f6a0fe035d 100755 --- a/tools/download-rust-crate +++ b/tools/download-rust-crate @@ -50,8 +50,8 @@ main() { fi # Hash the downloaded file - local md5sum="$(md5sum "${download}" | awk '{ print $1 }')" - if [ -z "${md5sum}" ]; then + local b2sum="$(b2sum "${download}" | awk '{ print $1 }')" + if [ -z "${b2sum}" ]; then echo "${0}: Could not hash download" >&2 unlink "${download}" return 1 @@ -73,7 +73,7 @@ main() { sed < "${RUST_TEMPLATE}" > "lfs/rust-${name}" \ -e "s/^VER.*/VER = ${version}/" \ -e "s/^THISAPP.*/THISAPP = ${name}-\$(VER)/" \ - -e "s/^\$(DL_FILE)_MD5.*/\$(DL_FILE)_MD5 = ${md5sum}/" + -e "s/^\$(DL_FILE)_BLAKE2.*/\$(DL_FILE)_BLAKE2 = ${b2sum}/" echo "Done" return 0 -- 2.39.5