From cbcac722547cae2a25ea4c8503c71adda271c557 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Sat, 28 Mar 2020 16:49:34 -0500 Subject: Buildcache keys command speed up (#15727) * Limit the spidering to depth=0 for keys * depth=0 is default argument --- lib/spack/spack/binary_distribution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/binary_distribution.py b/lib/spack/spack/binary_distribution.py index 7902e5fc58..0fb6feae02 100644 --- a/lib/spack/spack/binary_distribution.py +++ b/lib/spack/spack/binary_distribution.py @@ -903,7 +903,7 @@ def get_keys(install=False, trust=False, force=False): url_util.format(fetch_url_build_cache)) # For s3 mirror need to request index.html directly p, links = web_util.spider( - url_util.join(fetch_url_build_cache, 'index.html'), depth=1) + url_util.join(fetch_url_build_cache, 'index.html')) for link in links: if re.search(r'\.key', link) or re.search(r'\.pub', link): -- cgit v1.2.3-70-g09d2