Skip to content

Commit dd3889d

Browse files
committed
count the packages involved in the root of the conflict
1 parent 6421f85 commit dd3889d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/internal/core.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ impl<DP: DependencyProvider> State<DP> {
166166
}
167167
}
168168
if let Some(incompat_id) = conflict_id {
169-
for (p, _) in self.incompatibility_store[incompat_id].iter() {
170-
*self.conflict_count.entry(*p).or_default() += 1;
171-
}
172169
let (package_almost, root_cause) =
173170
self.conflict_resolution(incompat_id)
174171
.map_err(|terminal_incompat_id| {
175172
self.build_derivation_tree(terminal_incompat_id)
176173
})?;
174+
for (p, _) in self.incompatibility_store[root_cause].iter() {
175+
*self.conflict_count.entry(*p).or_default() += 1;
176+
}
177177
self.unit_propagation_buffer.clear();
178178
self.unit_propagation_buffer.push(package_almost);
179179
// Add to the partial solution with incompat as cause.

0 commit comments

Comments
 (0)