Skip to content

Commit

Permalink
Make info and list commane case insesitive
Browse files Browse the repository at this point in the history
It unifies behavior with repoquery command and DNF4

Closes: #1259
  • Loading branch information
j-mracek committed Feb 26, 2024
1 parent 8ba719c commit c98243d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dnf5/commands/list/list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ void ListCommand::run() {
if (!pkg_specs.empty()) {
base_query = libdnf5::rpm::PackageQuery(ctx.base, libdnf5::sack::ExcludeFlags::APPLY_EXCLUDES, true);
libdnf5::ResolveSpecSettings settings{
.with_nevra = true, .with_provides = false, .with_filenames = false, .with_binaries = false};
.ignore_case = true,
.with_nevra = true,
.with_provides = false,
.with_filenames = false,
.with_binaries = false};
for (const auto & spec : pkg_specs) {
libdnf5::rpm::PackageQuery pkg_query(full_package_query);
pkg_query.resolve_pkg_spec(spec, settings, true);
Expand Down

0 comments on commit c98243d

Please sign in to comment.