Skip to content

Commit

Permalink
replay: Allow up/down-grade if NA is already installed
Browse files Browse the repository at this point in the history
This makes a difference if `--ignore-installed` is set and the package
is installed in a different version -> it upgrades/downgrades the
package to the requested version.

This matches dnf4 behavior.
  • Loading branch information
kontura committed Jul 25, 2024
1 parent b09a033 commit 4887aa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libdnf5/base/goal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,9 @@ GoalProblem Goal::Impl::add_replay_to_goal(
package_replay.nevra,
query_to_vec_of_nevra_str(query_na),
log_level);
continue;
if (problem == GoalProblem::ALREADY_INSTALLED) {
continue;
}
}
}
}
Expand Down

0 comments on commit 4887aa8

Please sign in to comment.