Toolchain: Restore --no-check-certificate option

This commit is contained in:
Ole Schütt 2023-03-10 10:15:42 +01:00 committed by Ole Schütt
parent cf9aaa3c27
commit 409e5b1f42
2 changed files with 3 additions and 2 deletions

View file

@ -392,7 +392,7 @@ while [ $# -ge 1 ]; do
export NPROCS_OVERWRITE="${1#-j}"
;;
--no-check-certificate)
export DOWNLOADER_FLAGS="-n"
export DOWNLOADER_FLAGS="--no-check-certificate"
;;
--install-all)
# set all package to the default installation status

View file

@ -627,7 +627,8 @@ download_pkg_from_cp2k_org() {
local __filename="$2"
local __url="https://www.cp2k.org/static/downloads/$__filename"
# download
if ! wget --quiet $__url; then
echo "wget ${DOWNLOADER_FLAGS} --quiet $__url"
if ! wget ${DOWNLOADER_FLAGS} --quiet $__url; then
report_error "failed to download $__url"
return 1
fi