mirror: fix error for some specs during concretization (#2806)

This commit is contained in:
Massimiliano Culpo 2017-01-11 16:38:22 +01:00 committed by Todd Gamblin
parent 481bc91854
commit de2cb864fa

View File

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