summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2023-10-16 22:36:22 +0200
committerGitHub <noreply@github.com>2023-10-16 22:36:22 +0200
commit4a96d29e694ee207fd591546363f0d7dd9dc2cc7 (patch)
tree790e70c3efd2ef4e8ac51d4f0c198039b4123d95
parent1e44f33163d8d75632f0c9d67738d3fffb308cdb (diff)
downloadspack-4a96d29e694ee207fd591546363f0d7dd9dc2cc7.tar.gz
spack-4a96d29e694ee207fd591546363f0d7dd9dc2cc7.tar.bz2
spack-4a96d29e694ee207fd591546363f0d7dd9dc2cc7.tar.xz
spack-4a96d29e694ee207fd591546363f0d7dd9dc2cc7.zip
Use string representation of deptypes for concrete specs (#40566)
-rw-r--r--lib/spack/spack/solver/asp.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py
index ce0ae2ca7f..af0ddd67ae 100644
--- a/lib/spack/spack/solver/asp.py
+++ b/lib/spack/spack/solver/asp.py
@@ -1883,7 +1883,11 @@ class SpackSolverSetup:
continue
# skip build dependencies of already-installed specs
if concrete_build_deps or dtype != dt.BUILD:
- clauses.append(fn.attr("depends_on", spec.name, dep.name, dtype))
+ clauses.append(
+ fn.attr(
+ "depends_on", spec.name, dep.name, dt.flag_to_string(dtype)
+ )
+ )
for virtual_name in dspec.virtuals:
clauses.append(
fn.attr("virtual_on_edge", spec.name, dep.name, virtual_name)