Spec.edge_attributes: deduplicate dependency conditions from multiple parents
Signed-off-by: Gregory Becker <becker33@llnl.gov>
This commit is contained in:
parent
ebf4c8b445
commit
fb6ffc45d7
@ -1649,12 +1649,12 @@ def edge_attributes(self) -> str:
|
||||
|
||||
union = DependencySpec(parent=Spec(), spec=self, depflag=0, virtuals=())
|
||||
all_direct_edges = all(x.direct for x in edges)
|
||||
dep_conditions = []
|
||||
dep_conditions = set()
|
||||
|
||||
for edge in edges:
|
||||
union.update_deptypes(edge.depflag)
|
||||
union.update_virtuals(edge.virtuals)
|
||||
dep_conditions.append(edge.when)
|
||||
dep_conditions.add(edge.when)
|
||||
|
||||
deptypes_str = ""
|
||||
if not all_direct_edges and union.depflag:
|
||||
|
Loading…
Reference in New Issue
Block a user