mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +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
@ -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/*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user