diff --git a/pkgs/build-support/fetchhg/nix-prefetch-hg b/pkgs/build-support/fetchhg/nix-prefetch-hg index 55501f41bbe8..f1f648f4aeb8 100755 --- a/pkgs/build-support/fetchhg/nix-prefetch-hg +++ b/pkgs/build-support/fetchhg/nix-prefetch-hg @@ -49,6 +49,7 @@ if test -z "$finalPath"; then tmpClone=$url fi hg archive -q -y -r "$rev" --cwd $tmpClone $tmpArchive + rm -f $tmpArchive/.hg_archival.txt # Compute the hash.