summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorScott Wittenburg <scott.wittenburg@kitware.com>2020-07-16 19:22:19 -0600
committerScott Wittenburg <scott.wittenburg@kitware.com>2020-07-17 10:04:05 -0600
commitae03782032672bae0f89bf1ad80f144dda2c9b41 (patch)
treefde016524fc0133a192a0bdb2872186414475367 /lib
parentc729c6b93c490e204295686edd9e5703cbcdbf20 (diff)
downloadspack-ae03782032672bae0f89bf1ad80f144dda2c9b41.tar.gz
spack-ae03782032672bae0f89bf1ad80f144dda2c9b41.tar.bz2
spack-ae03782032672bae0f89bf1ad80f144dda2c9b41.tar.xz
spack-ae03782032672bae0f89bf1ad80f144dda2c9b41.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 481c540bd9..6041891f44 100644
--- a/lib/spack/spack/binary_distribution.py
+++ b/lib/spack/spack/binary_distribution.py
@@ -884,8 +884,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')