nix-prefetch-git: remove call to non-existent print_metadata command; improve hash mismatch error message.

This commit is contained in:
Connor Clark 2017-01-03 18:54:13 -08:00
parent fa89f84c54
commit c7ba4643a9

View File

@ -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