mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
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