Skip to content
Snippets Groups Projects
Commit 6fb5f7e5 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Pass `--base32' unless using MD5.

parent c757d16c
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,9 @@ while ($queueFront < scalar @queue) {
if (isValidPath($patch->{basePath})) {
# !!! this should be cached
my ($baseHashAlgo, $baseHash) = parseHash $patch->{baseHash};
my $hash = `@bindir@/nix-hash --type '$baseHashAlgo' "$patch->{basePath}"`;
my $format = "--base32";
$format = "" if $baseHashAlgo eq "md5";
my $hash = `@bindir@/nix-hash --type '$baseHashAlgo' $format "$patch->{basePath}"`;
chomp $hash;
# print " MY HASH is $hash\n";
if ($hash ne $baseHash) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment