summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2019-10-17 11:17:21 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2020-11-17 10:04:13 -0800
commitda215b50a37be4436b386a661d3cc235b7bb3ad0 (patch)
tree0f14591add17ab70327c8503fce19f9fea8c87b2 /lib
parent4d34363c1d2551ab64e4df8b314c2498602f6807 (diff)
downloadspack-da215b50a37be4436b386a661d3cc235b7bb3ad0.tar.gz
spack-da215b50a37be4436b386a661d3cc235b7bb3ad0.tar.bz2
spack-da215b50a37be4436b386a661d3cc235b7bb3ad0.tar.xz
spack-da215b50a37be4436b386a661d3cc235b7bb3ad0.zip
concretizer: handle package namespaces
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/solver/asp.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py
index 500d34845b..1c8d69f7b0 100644
--- a/lib/spack/spack/solver/asp.py
+++ b/lib/spack/spack/solver/asp.py
@@ -691,7 +691,14 @@ class ResultParser(object):
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))