From a79b312cbb7ea048fc63e2fc7f4341c3c02dd063 Mon Sep 17 00:00:00 2001 From: ZenithalHourlyRate Date: Wed, 27 Oct 2021 14:59:37 +0800 Subject: [PATCH] hackage: download legacy index instead of symlink Ref to https://github.com/haskell/cabal/issues/4624 Ref to https://github.com/tuna/issues/issues/1371 --- hackage.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hackage.sh b/hackage.sh index f07c4d5..dec1028 100755 --- a/hackage.sh +++ b/hackage.sh @@ -50,6 +50,8 @@ function hackage_mirror() { echo "Downloading index..." rm index.tar.gz || true curl -s -S --fail -L "${base_url}/01-index.tar.gz" -o index.tar.gz + rm index-legacy.tar.gz || true + curl -s -S --fail -L "${base_url}/00-index.tar.gz" -o index-legacy.tar.gz # https://hackage.haskell.org/api#security echo "Dowloading security features..." @@ -106,7 +108,7 @@ function hackage_mirror() { done cp index.tar.gz 01-index.tar.gz - ln -sf 01-index.tar.gz 00-index.tar.gz + cp index-legacy.tar.gz 00-index.tar.gz } function cleanup () {