From 12346673c0dd464835a94fb4b0744640706eff34 Mon Sep 17 00:00:00 2001 From: Marek Blaha Date: Thu, 14 Mar 2024 09:58:40 +0100 Subject: [PATCH] dnf5: Remove redundant arch filters Now filter_upgrades does not return source packages as upgrade candidates to binary packages. --- dnf5/commands/check-upgrade/check-upgrade.cpp | 5 ----- dnf5/commands/list/list.cpp | 1 - 2 files changed, 6 deletions(-) diff --git a/dnf5/commands/check-upgrade/check-upgrade.cpp b/dnf5/commands/check-upgrade/check-upgrade.cpp index c804dbd97..fbfed7187 100644 --- a/dnf5/commands/check-upgrade/check-upgrade.cpp +++ b/dnf5/commands/check-upgrade/check-upgrade.cpp @@ -129,11 +129,6 @@ void CheckUpgradeCommand::run() { upgrades_query.filter_upgrades(); - // Source RPMs should not be reported as upgrades, e.g. when the binary - // package is marked exclude and only the source package is left in the - // repo - upgrades_query.filter_arch({"src", "nosrc"}, libdnf5::sack::QueryCmp::NOT_EXACT); - libdnf5::rpm::PackageQuery installed_query(ctx.base); installed_query.filter_installed(); diff --git a/dnf5/commands/list/list.cpp b/dnf5/commands/list/list.cpp index e97f08063..b1fe83d2f 100644 --- a/dnf5/commands/list/list.cpp +++ b/dnf5/commands/list/list.cpp @@ -214,7 +214,6 @@ void ListCommand::run() { case PkgNarrow::UPGRADES: base_query.filter_priority(); base_query.filter_upgrades(); - base_query.filter_arch({"src", "nosrc"}, libdnf5::sack::QueryCmp::NEQ); base_query.filter_latest_evr(); package_matched |= sections->add_section("Available upgrades", base_query, colorizer); break;