mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04: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()
|
tarballHash = hasher.hexdigest()
|
||||||
|
|
||||||
if tarballHash not in SHA256_SUMS or SHA256_SUMS[tarballHash] != tarball:
|
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
|
return 1
|
||||||
print("Checksum matched")
|
print("Checksum matched")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue