diff options
author | Javier Cervantes <javiercvilla@gmail.com> | 2019-02-15 20:33:49 +0100 |
---|---|---|
committer | Patrick Gartung <gartung@fnal.gov> | 2019-02-15 13:33:49 -0600 |
commit | 9b1690641b5f0d54acba31e88b5095194ed5317c (patch) | |
tree | 679553026e82d10e4d489071bd0700d10b14b33a | |
parent | 75487dca4437eb80ae0d9b81a2972cea6584af06 (diff) | |
download | spack-9b1690641b5f0d54acba31e88b5095194ed5317c.tar.gz spack-9b1690641b5f0d54acba31e88b5095194ed5317c.tar.bz2 spack-9b1690641b5f0d54acba31e88b5095194ed5317c.tar.xz spack-9b1690641b5f0d54acba31e88b5095194ed5317c.zip |
Fix bug getting specs from build caches (#9600)
-rw-r--r-- | lib/spack/spack/binary_distribution.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/binary_distribution.py b/lib/spack/spack/binary_distribution.py index 7bceb1189e..fc05b078c3 100644 --- a/lib/spack/spack/binary_distribution.py +++ b/lib/spack/spack/binary_distribution.py @@ -581,7 +581,7 @@ def get_specs(force=False): if re.search("spec.yaml", link) and re.search(path, link): urls.add(link) - _cached_specs = set() + _cached_specs = [] for link in urls: with Stage(link, name="build_cache", keep=True) as stage: if force and os.path.exists(stage.save_filename): @@ -597,7 +597,7 @@ def get_specs(force=False): # we need to mark this spec concrete on read-in. spec = spack.spec.Spec.from_yaml(f) spec._mark_concrete() - _cached_specs.add(spec) + _cached_specs.append(spec) return _cached_specs |