mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-20 21:45:10 +02:00
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
This commit is contained in:
parent
d8f1e1327f
commit
179a051704
@ -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…
x
Reference in New Issue
Block a user