Buildcache keys command speed up (#15727)

* Limit the spidering to depth=0 for keys

* depth=0 is default argument
This commit is contained in:
Patrick Gartung 2020-03-28 16:49:34 -05:00 committed by GitHub
parent beaa4fbe3c
commit cbcac72254
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):