buildcache: list all mirrors even if one fails
This commit is contained in:
parent
c729c6b93c
commit
ae03782032
1 changed files with 2 additions and 2 deletions
|
@ -884,8 +884,8 @@ def get_specs(allarch=False):
|
||||||
except (URLError, web_util.SpackWebError) as url_err:
|
except (URLError, web_util.SpackWebError) as url_err:
|
||||||
tty.error('Failed to read index {0}'.format(index_url))
|
tty.error('Failed to read index {0}'.format(index_url))
|
||||||
tty.debug(url_err)
|
tty.debug(url_err)
|
||||||
# Just return whatever specs we may already have cached
|
# Continue on to the next mirror
|
||||||
return _cached_specs
|
continue
|
||||||
|
|
||||||
tmpdir = tempfile.mkdtemp()
|
tmpdir = tempfile.mkdtemp()
|
||||||
index_file_path = os.path.join(tmpdir, 'index.json')
|
index_file_path = os.path.join(tmpdir, 'index.json')
|
||||||
|
|
Loading…
Reference in a new issue