Merge pull request #24 from samueldr/fix/wrong-hash-format

mirror: sets hash format to base16
This commit is contained in:
Graham Christensen 2019-04-30 18:26:52 -04:00 committed by GitHub
commit 3e89acae6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,7 +115,7 @@ if ($bucket->head_key("$releasePrefix")) {
}
if (-e "$dstFile.sha256") {
my $sha256_actual = `nix hash-file --type sha256 '$dstFile'`;
my $sha256_actual = `nix hash-file --base16 --type sha256 '$dstFile'`;
chomp $sha256_actual;
if ($sha256_expected ne $sha256_actual) {
print STDERR "file $dstFile is corrupt $sha256_expected $sha256_actual\n";