Skip to content

Commit 179a051

Browse files
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
1 parent d8f1e13 commit 179a051

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/get_previous_releases.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ def download_binary(tag, args) -> int:
104104
tarballHash = hasher.hexdigest()
105105

106106
if tarballHash not in SHA256_SUMS or SHA256_SUMS[tarballHash] != tarball:
107-
print("Checksum did not match")
107+
if tarball in SHA256_SUMS.values():
108+
print("Checksum did not match")
109+
return 1
110+
111+
print("Checksum for given version doesn't exist")
108112
return 1
109113
print("Checksum matched")
110114

0 commit comments

Comments
 (0)