respect -k/verify-ssl-false in _existing_url method (#21864)
This commit is contained in:
parent
73da7b6de6
commit
482a1a86be
@ -326,6 +326,8 @@ def _existing_url(self, url):
|
|||||||
# Telling curl to fetch the first byte (-r 0-0) is supposed to be
|
# Telling curl to fetch the first byte (-r 0-0) is supposed to be
|
||||||
# portable.
|
# portable.
|
||||||
curl_args = ['--stderr', '-', '-s', '-f', '-r', '0-0', url]
|
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)
|
_ = curl(*curl_args, fail_on_error=False, output=os.devnull)
|
||||||
return curl.returncode == 0
|
return curl.returncode == 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user