From e4418d7848e8d721487a2d0b4f6c5c73b863e3c7 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 4 Aug 2024 17:58:55 +0200 Subject: [PATCH] CI: Download OpenSSL from GitHub instead of openssl.org --- scripts/fetch-sources | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/fetch-sources b/scripts/fetch-sources index 7c7f0b1..799f36a 100755 --- a/scripts/fetch-sources +++ b/scripts/fetch-sources @@ -80,9 +80,9 @@ for item in "$@"; do case "$name" in openssl) - base_url='https://www.openssl.org/source' - ver=$(scrape_latest_version "$base_url/" "openssl-($ver_regex)\." 'openssl') - url="$base_url/$name-$ver.tar.gz" + tag=$(github_latest_version_tag openssl/openssl 'openssl-([0-9]+\.)+[0-9]+') + ver=$(echo "$tag" | grep -o 'openssl-[0-9].*') + url="https://github.com/openssl/openssl/releases/download/$tag/${name#*/}-$ver.tar.gz" ;; pcre) base_url='https://sourceforge.net/projects/pcre'