Skip to content

Commit

Permalink
cout root
Browse files Browse the repository at this point in the history
  • Loading branch information
Eh2406 committed Dec 12, 2024
1 parent 6421f85 commit 23f7e30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/internal/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ impl<DP: DependencyProvider> State<DP> {
}
}
if let Some(incompat_id) = conflict_id {
for (p, _) in self.incompatibility_store[incompat_id].iter() {
*self.conflict_count.entry(*p).or_default() += 1;
}
let (package_almost, root_cause) =
self.conflict_resolution(incompat_id)
.map_err(|terminal_incompat_id| {
self.build_derivation_tree(terminal_incompat_id)
})?;
for (p, _) in self.incompatibility_store[root_cause].iter() {
*self.conflict_count.entry(*p).or_default() += 1;
}
self.unit_propagation_buffer.clear();
self.unit_propagation_buffer.push(package_almost);
// Add to the partial solution with incompat as cause.
Expand Down

0 comments on commit 23f7e30

Please sign in to comment.