diff options
author | Connor Clark <connor@awakenetworks.com> | 2017-01-03 18:54:13 -0800 |
---|---|---|
committer | Connor Clark <connor@awakenetworks.com> | 2017-01-03 18:57:37 -0800 |
commit | c7ba4643a963999cb63e6d7835fdabf71d3e95a1 (patch) | |
tree | 4e7a0afb8514583ecd29f266de86cee45df474d3 /pkgs/build-support/fetchgit | |
parent | fa89f84c546b2f7e669cacb4e457e2460a487e0a (diff) |
nix-prefetch-git: remove call to non-existent print_metadata command; improve hash mismatch error message.
Diffstat (limited to 'pkgs/build-support/fetchgit')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index f71d9ac55bc09..3d656eba5fff7 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -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 |