Skip to content

Commit

Permalink
ABI BREAK
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura committed Nov 15, 2024
1 parent c2796d3 commit debcb0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dnf5/commands/repoquery/repoquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion include/libdnf5/rpm/package_query.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down
3 changes: 2 additions & 1 deletion libdnf5/rpm/package_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit debcb0d

Please sign in to comment.