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
pull/826/head
Nelson Galdeman 3 years ago
parent d8f1e1327f
commit 179a051704
No known key found for this signature in database
GPG Key ID: 4369E8EABC7694BE

@ -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")

Loading…
Cancel
Save