Skip to content

Commit

Permalink
Option --providers-of doesn't require available repos
Browse files Browse the repository at this point in the history
It can work just fine with only installed packages.

This was also a change in comparison to dnf4 (option `--resolve` didn't
load available repos).

https://bugzilla.redhat.com/show_bug.cgi?id=2279959
  • Loading branch information
kontura authored and jan-kolarik committed May 13, 2024
1 parent 5feb957 commit fa813e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnf5/commands/repoquery/repoquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ void RepoqueryCommand::configure() {
context.set_load_available_repos(
// available_option is on by default, to check if user specified it we check priority
available_option->get_priority() >= libdnf5::Option::Priority::COMMANDLINE || !system_repo_needed ||
extras->get_value() || upgrades->get_value() || !providers_of_option->get_value().empty()
extras->get_value() || upgrades->get_value()
? Context::LoadAvailableRepos::ENABLED
: Context::LoadAvailableRepos::NONE);

Expand Down

0 comments on commit fa813e0

Please sign in to comment.