diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2017-01-11 16:38:22 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-01-11 07:38:22 -0800 |
commit | de2cb864faaac04f711e6d0241efcda96d2c5829 (patch) | |
tree | de248f6040493398bcc7d1af6d53f13d8d6946e6 | |
parent | 481bc91854219a4b7a65de85e2025e20c7ec23c8 (diff) | |
download | spack-de2cb864faaac04f711e6d0241efcda96d2c5829.tar.gz spack-de2cb864faaac04f711e6d0241efcda96d2c5829.tar.bz2 spack-de2cb864faaac04f711e6d0241efcda96d2c5829.tar.xz spack-de2cb864faaac04f711e6d0241efcda96d2c5829.zip |
mirror: fix error for some specs during concretization (#2806)
-rw-r--r-- | lib/spack/spack/mirror.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/mirror.py b/lib/spack/spack/mirror.py index 97aeef5434..aef5e2e8ee 100644 --- a/lib/spack/spack/mirror.py +++ b/lib/spack/spack/mirror.py @@ -104,6 +104,9 @@ def get_matching_versions(specs, **kwargs): s = Spec(pkg.name) s.versions = VersionList([v]) s.variants = spec.variants.copy() + # This is needed to avoid hanging references during the + # concretization phase + s.variants.spec = s matching_spec.append(s) if not matching_spec: |