Browse Source

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

nixos-19.03
Connor Clark 6 years ago
parent
commit
c7ba4643a9
  1. 3
      pkgs/build-support/fetchgit/nix-prefetch-git

3
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

Loading…
Cancel
Save