mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Merge bitcoin/bitcoin#22442: util: improves error messages on get_previous_releases script
179a051704321ba40277a5855d6ac0dbb45689dd util: improves error messages on get_previous_releases script (Nelson Galdeman) Pull request description: When previous releases are fetched and the specified version wasn't added to the checksum list we used to get a "Checksum did not match" which isn't true (https://github.com/bitcoin-core/bitcoincore.org/issues/753#issuecomment-879546719). If the specified version number is not on the list, it now logs cannot do the comparison instead. ACKs for top commit: practicalswift: cr ACK 179a051704321ba40277a5855d6ac0dbb45689dd theStack: tACK 179a051704321ba40277a5855d6ac0dbb45689dd, tested on Debian bullseye/sid Tree-SHA512: 2a07ce75232f853fd311c43581f8faf12d423668946ae6ad784feece5b4d0edd57fc018ba1f0c5a73bfaccb326e0df9a643580d16bf427c1ec3ff34a9cdbc80c
This commit is contained in:
parent
9cbe0de929
commit
67481eeb69
@ -104,8 +104,12 @@ def download_binary(tag, args) -> int:
|
||||
tarballHash = hasher.hexdigest()
|
||||
|
||||
if tarballHash not in SHA256_SUMS or SHA256_SUMS[tarballHash] != tarball:
|
||||
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")
|
||||
|
||||
# Extract tarball
|
||||
|
Loading…
Reference in New Issue
Block a user