Merge pull request #37 from huandzh/patch-1

hackage新的安全机制需要增加同步若干json文件
This commit is contained in:
Chen 2019-07-08 13:32:14 +08:00 committed by GitHub
commit fbd47502ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,14 @@ function hackage_mirror() {
rm index.tar.gz || true rm index.tar.gz || true
wget "${base_url}/01-index.tar.gz" -O index.tar.gz &> /dev/null 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" echo "building local package list"
local tmp local tmp
tmp=(package/*) tmp=(package/*)