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:
parent
893b0792e4
commit
9ffa053f18
1 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue