diff --git a/dnf5/commands/download/download.cpp b/dnf5/commands/download/download.cpp index a17d09ad1..c888cc9a5 100644 --- a/dnf5/commands/download/download.cpp +++ b/dnf5/commands/download/download.cpp @@ -187,7 +187,7 @@ void DownloadCommand::run() { } for (auto & [nerva, pkg] : download_pkgs) { auto urls = pkg.get_remote_locations(urlprotocol_option); - if (urls.empty()) { + if (!urls.empty()) { std::cout << "Testing if condition is met" << std::endl; ctx.base.get_logger()->warning("Failed to get mirror for package: \"{}\"", pkg.get_name()); continue;