summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorScott Wittenburg <scott.wittenburg@kitware.com>2020-07-16 19:22:19 -0600
committerGregory Becker <becker33@llnl.gov>2020-07-23 13:54:36 -0700
commit3a8bc7ffc6db2a852283274d5fced9628e6a88f5 (patch)
treebaf313f28d7f7dd2a1420fed869847f41221900b /lib
parent9cbe358f848831ba559f1cf6e0b417a23548438d (diff)
downloadspack-3a8bc7ffc6db2a852283274d5fced9628e6a88f5.tar.gz
spack-3a8bc7ffc6db2a852283274d5fced9628e6a88f5.tar.bz2
spack-3a8bc7ffc6db2a852283274d5fced9628e6a88f5.tar.xz
spack-3a8bc7ffc6db2a852283274d5fced9628e6a88f5.zip
buildcache: list all mirrors even if one fails
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/binary_distribution.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/binary_distribution.py b/lib/spack/spack/binary_distribution.py
index 05a7904815..a101abefa1 100644
--- a/lib/spack/spack/binary_distribution.py
+++ b/lib/spack/spack/binary_distribution.py
@@ -869,8 +869,8 @@ def get_specs(allarch=False):
except (URLError, web_util.SpackWebError) as url_err:
tty.error('Failed to read index {0}'.format(index_url))
tty.debug(url_err)
- # Just return whatever specs we may already have cached
- return _cached_specs
+ # Continue on to the next mirror
+ continue
tmpdir = tempfile.mkdtemp()
index_file_path = os.path.join(tmpdir, 'index.json')