From debcb0df062f2fa1a5a85dfe7d0185d6bea10a90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Fri, 15 Nov 2024 11:12:46 +0100 Subject: [PATCH] ABI BREAK --- dnf5/commands/repoquery/repoquery.cpp | 2 +- include/libdnf5/rpm/package_query.hpp | 2 +- libdnf5/rpm/package_query.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dnf5/commands/repoquery/repoquery.cpp b/dnf5/commands/repoquery/repoquery.cpp index fbfc7f200..73de37251 100644 --- a/dnf5/commands/repoquery/repoquery.cpp +++ b/dnf5/commands/repoquery/repoquery.cpp @@ -596,7 +596,7 @@ void RepoqueryCommand::run() { libdnf5::rpm::PackageQuery installonly_query(ctx.get_base(), flags, false); installonly_query.filter_installonly(); result_query -= installonly_query; - result_query.filter_duplicates(); + result_query.filter_duplicates(""); } if (unneeded->get_value()) { diff --git a/include/libdnf5/rpm/package_query.hpp b/include/libdnf5/rpm/package_query.hpp index 03d20cafc..3945aa2ef 100644 --- a/include/libdnf5/rpm/package_query.hpp +++ b/include/libdnf5/rpm/package_query.hpp @@ -967,7 +967,7 @@ class LIBDNF_API PackageQuery : public PackageSet { void swap(PackageQuery & other) noexcept; /// Filter packages to keep only duplicates of installed packages. Packages are duplicate if they have the same `name` and `arch` but different `evr`. - void filter_duplicates(); + void filter_duplicates(std::string asdasd); /// Filter the leaf packages. /// diff --git a/libdnf5/rpm/package_query.cpp b/libdnf5/rpm/package_query.cpp index 1fb05e7a4..6f50d7972 100644 --- a/libdnf5/rpm/package_query.cpp +++ b/libdnf5/rpm/package_query.cpp @@ -2704,7 +2704,8 @@ void PackageQuery::swap(PackageQuery & other) noexcept { p_pq_impl.swap(other.p_pq_impl); } -void PackageQuery::filter_duplicates() { +void PackageQuery::filter_duplicates(std::string asdasd) { + (void) asdasd; auto & pool = get_rpm_pool(p_impl->base); filter_installed();