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:
DHuan 2019-07-05 12:05:34 +08:00 committed by GitHub
parent 509d5b33d1
commit 1e88d7961d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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