mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-19 11:42:43 +00:00
Sync security features
These `json` files are required for stack 2.1.1. Refs: * https://docs.haskellstack.org/en/stable/yaml_configuration/#package-indices * https://hackage.haskell.org/api#security
This commit is contained in:
parent
509d5b33d1
commit
1e88d7961d
@ -50,6 +50,14 @@ function hackage_mirror() {
|
||||
echo "Downloading index..."
|
||||
rm index.tar.gz || true
|
||||
wget "${base_url}/01-index.tar.gz" -O index.tar.gz &> /dev/null
|
||||
|
||||
# https://hackage.haskell.org/api#security
|
||||
echo "Dowloading security features..."
|
||||
jsons=("timestamp.json" "snapshot.json" "root.json" "mirrors.json")
|
||||
for name in "${jsons[@]}"
|
||||
do
|
||||
wget "${base_url}/${name}" -O ${name}
|
||||
done
|
||||
|
||||
echo "building local package list"
|
||||
local tmp
|
||||
|
Loading…
x
Reference in New Issue
Block a user