mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
Fixed: Fix bootstrap checksum check if it contained leading zeros
This commit is contained in:
parent
085b17e496
commit
903b1c75a2
1 changed files with 1 additions and 0 deletions
|
|
@ -177,6 +177,7 @@ def downloadBootstrap(String arch, String expectedChecksum, String version) {
|
|||
out.close()
|
||||
|
||||
def checksum = new BigInteger(1, digest.digest()).toString(16)
|
||||
while (checksum.length() < 64) { checksum = "0" + checksum }
|
||||
if (checksum != expectedChecksum) {
|
||||
file.delete()
|
||||
throw new GradleException("Wrong checksum for " + remoteUrl + ": expected: " + expectedChecksum + ", actual: " + checksum)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue