From 482a1a86be7149f88a957684f690223e366bdfba Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Mon, 22 Feb 2021 14:00:59 -0800 Subject: respect -k/verify-ssl-false in _existing_url method (#21864) --- lib/spack/spack/fetch_strategy.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/spack/spack/fetch_strategy.py b/lib/spack/spack/fetch_strategy.py index 28f1a87c17..ff41c759ea 100644 --- a/lib/spack/spack/fetch_strategy.py +++ b/lib/spack/spack/fetch_strategy.py @@ -326,6 +326,8 @@ class URLFetchStrategy(FetchStrategy): # Telling curl to fetch the first byte (-r 0-0) is supposed to be # portable. curl_args = ['--stderr', '-', '-s', '-f', '-r', '0-0', url] + if not spack.config.get('config:verify_ssl'): + curl_args.append('-k') _ = curl(*curl_args, fail_on_error=False, output=os.devnull) return curl.returncode == 0 -- cgit v1.2.3-70-g09d2