Use string representation of deptypes for concrete specs (#40566)

This commit is contained in:
Massimiliano Culpo 2023-10-16 22:36:22 +02:00 committed by GitHub
parent 1e44f33163
commit 4a96d29e69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1883,7 +1883,11 @@ class Body:
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)