nix-prefetch-git: remove call to non-existent print_metadata command; improve hash mismatch error message.
This commit is contained in:
parent
fa89f84c54
commit
c7ba4643a9
@ -406,8 +406,7 @@ else
|
||||
finalPath=$(nix-store --add-fixed --recursive "$hashType" "$tmpFile")
|
||||
|
||||
if test -n "$expHash" -a "$expHash" != "$hash"; then
|
||||
print_metadata
|
||||
echo "hash mismatch for URL \`$url'" >&2
|
||||
echo "hash mismatch for URL \`$url'. Got \`$hash'; expected \`$expHash'." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user