diff options
-rw-r--r-- | lib/spack/spack/binary_distribution.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/spack/spack/binary_distribution.py b/lib/spack/spack/binary_distribution.py index 55feacc7c4..64ce23a8d6 100644 --- a/lib/spack/spack/binary_distribution.py +++ b/lib/spack/spack/binary_distribution.py @@ -690,7 +690,10 @@ def get_specs(force=False, use_arch=False): for file in files: if re.search('spec.yaml', file): link = url_util.join(fetch_url_build_cache, file) - if use_arch and re.search(spack.architecture(), file): + if use_arch and re.search('%s-%s' % + (spack.architecture.platform, + spack.architecture.os), + file): urls.add(link) else: urls.add(link) @@ -701,7 +704,10 @@ def get_specs(force=False, use_arch=False): url_util.join(fetch_url_build_cache, 'index.html')) for link in links: if re.search("spec.yaml", link): - if use_arch and re.search(spack.architecture(), link): + if use_arch and re.search('%s-%s' % + (spack.architecture.platform, + spack.architecture.os), + link): urls.add(link) else: urls.add(link) |