Fix bug introduced by pull request 14467 being merged (#14639)

* Fix bug introduced by pull request 14467 being merged

* Only filter on platform and OS
This commit is contained in:
Patrick Gartung 2020-01-27 14:17:15 -06:00 committed by GitHub
parent 893b0792e4
commit 9ffa053f18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)