From 179a051704321ba40277a5855d6ac0dbb45689dd Mon Sep 17 00:00:00 2001 From: Nelson Galdeman Date: Tue, 20 Jul 2021 09:50:54 +0100 Subject: util: improves error messages on get_previous_releases script If a requested version doesn't exist on our list of checksums it says it cannot do a checksum comparision instead of saying it did not match --- test/get_previous_releases.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/get_previous_releases.py b/test/get_previous_releases.py index b177fbb4b2..51f2c30bbd 100755 --- a/test/get_previous_releases.py +++ b/test/get_previous_releases.py @@ -104,7 +104,11 @@ def download_binary(tag, args) -> int: tarballHash = hasher.hexdigest() if tarballHash not in SHA256_SUMS or SHA256_SUMS[tarballHash] != tarball: - print("Checksum did not match") + if tarball in SHA256_SUMS.values(): + print("Checksum did not match") + return 1 + + print("Checksum for given version doesn't exist") return 1 print("Checksum matched") -- cgit v1.2.3