Skip to content

Commit

Permalink
hackage: download legacy index instead of symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenithalHourlyRate committed Oct 27, 2021
1 parent 5ce2bb3 commit a79b312
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down Expand Up @@ -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 () {
Expand Down

0 comments on commit a79b312

Please sign in to comment.