From fa813e0002ef8c5e38b7013ab297d6520dfea8ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Fri, 10 May 2024 09:38:06 +0200 Subject: [PATCH] Option `--providers-of` doesn't require available repos 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 --- dnf5/commands/repoquery/repoquery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnf5/commands/repoquery/repoquery.cpp b/dnf5/commands/repoquery/repoquery.cpp index 999815437..10a53fd5c 100644 --- a/dnf5/commands/repoquery/repoquery.cpp +++ b/dnf5/commands/repoquery/repoquery.cpp @@ -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);