From c7ba4643a963999cb63e6d7835fdabf71d3e95a1 Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Tue, 3 Jan 2017 18:54:13 -0800 Subject: nix-prefetch-git: remove call to non-existent print_metadata command; improve hash mismatch error message. --- pkgs/build-support/fetchgit/nix-prefetch-git | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkgs/build-support') diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index f71d9ac55bc0..3d656eba5fff 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 -- cgit 1.4.1