Skip to content

Commit

Permalink
Use focusbest: prefer latest deps versions over smaller transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura committed Sep 18, 2023
1 parent c080080 commit f1ec7e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libdnf5/rpm/solv/goal_private.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ libdnf5::GoalProblem GoalPrivate::resolve() {
libsolv_solver.set_flag(SOLVER_FLAG_ALLOW_VENDORCHANGE, vendor_change);
libsolv_solver.set_flag(SOLVER_FLAG_DUP_ALLOW_VENDORCHANGE, vendor_change);

// Ensure the solver tries to use the latest versions of dependencies, even if it results in a bigger transaction
libsolv_solver.set_flag(SOLVER_FLAG_FOCUS_BEST, 1);

if (libsolv_solver.solve(job)) {
return libdnf5::GoalProblem::SOLVER_ERROR;
}
Expand Down

0 comments on commit f1ec7e2

Please sign in to comment.