concretizer: handle package namespaces

This commit is contained in:
Todd Gamblin 2019-10-17 11:17:21 -07:00
parent 4d34363c1d
commit da215b50a3

View File

@ -691,7 +691,14 @@ def parse_best(self, output, result):
opt = [int(x) for x in costs[1:]]
for spec in self._specs.values():
# namespace assignment can be done after the fact, as
# it is not part of the solve
repo = spack.repo.path.repo_for_pkg(spec)
spec.namespace = repo.namespace
# once this is done, everything is concrete
spec._mark_concrete()
result.answers.append((opt, best_model_number, self._specs))