Skip to content

Commit

Permalink
transaction: Fix reporting spec matches only source
Browse files Browse the repository at this point in the history
Correctly report "Argument matches only source packages." in case user
tries to install a source rpm.
Current code misleadingly reports "Argument matches only excluded
packages."
  • Loading branch information
m-blaha committed Nov 24, 2023
1 parent 2198be9 commit 776f6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdnf5/base/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ GoalProblem Transaction::Impl::report_not_found(
}
return GoalProblem::NOT_FOUND;
}
query.filter_repo_id({"src", "nosrc"}, sack::QueryCmp::NEQ);
query.filter_arch({"src", "nosrc"}, sack::QueryCmp::NEQ);
if (query.empty()) {
add_resolve_log(
action,
Expand Down

0 comments on commit 776f6ee

Please sign in to comment.