From 1e88d7961d68f2d799473e8403960597c8df5189 Mon Sep 17 00:00:00 2001 From: DHuan Date: Fri, 5 Jul 2019 12:05:34 +0800 Subject: [PATCH] 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 --- hackage.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hackage.sh b/hackage.sh index e846232..ed6a0ee 100755 --- a/hackage.sh +++ b/hackage.sh @@ -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