Buildcache keys command speed up (#15727)
* Limit the spidering to depth=0 for keys * depth=0 is default argument
This commit is contained in:
parent
beaa4fbe3c
commit
cbcac72254
1 changed files with 1 additions and 1 deletions
|
@ -903,7 +903,7 @@ def get_keys(install=False, trust=False, force=False):
|
||||||
url_util.format(fetch_url_build_cache))
|
url_util.format(fetch_url_build_cache))
|
||||||
# For s3 mirror need to request index.html directly
|
# For s3 mirror need to request index.html directly
|
||||||
p, links = web_util.spider(
|
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:
|
for link in links:
|
||||||
if re.search(r'\.key', link) or re.search(r'\.pub', link):
|
if re.search(r'\.key', link) or re.search(r'\.pub', link):
|
||||||
|
|
Loading…
Reference in a new issue