mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-06-30 23:12:45 +00:00
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
This commit is contained in:
parent
5ce2bb3d8a
commit
a79b312cbb
@ -50,6 +50,8 @@ function hackage_mirror() {
|
|||||||
echo "Downloading index..."
|
echo "Downloading index..."
|
||||||
rm index.tar.gz || true
|
rm index.tar.gz || true
|
||||||
curl -s -S --fail -L "${base_url}/01-index.tar.gz" -o index.tar.gz
|
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
|
# https://hackage.haskell.org/api#security
|
||||||
echo "Dowloading security features..."
|
echo "Dowloading security features..."
|
||||||
@ -106,7 +108,7 @@ function hackage_mirror() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
cp index.tar.gz 01-index.tar.gz
|
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 () {
|
function cleanup () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user