summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@googlemail.com>2017-01-11 16:38:22 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2017-01-11 07:38:22 -0800
commitde2cb864faaac04f711e6d0241efcda96d2c5829 (patch)
treede248f6040493398bcc7d1af6d53f13d8d6946e6
parent481bc91854219a4b7a65de85e2025e20c7ec23c8 (diff)
downloadspack-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.py3
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: