mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-04 15:18:05 +01: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
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue