From 39517ec141965782475dce01c312056d69d8cede Mon Sep 17 00:00:00 2001 From: Derick Diaz Date: Wed, 24 Jan 2024 10:47:32 -0600 Subject: [PATCH] Testing condition --- dnf5/commands/download/download.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;