rpm-software-management / dnf

Package manager based on libdnf and libsolv. Replaces YUM.
GNU General Public License v2.0
1.22k stars 405 forks source link

Provides search suggests wildcard prefix ("*/") annoyingly that's exactly what you've done. #2063

Open jboero opened 4 months ago

jboero commented 4 months ago

It's really not a technical issue but an annoyance for a few years now. DNF suggests using wildcards when nothing comes back for a provides search using wildcards..

$  sudo dnf provides '*/purplemonkeydishwasher'
Last metadata expiration check: 1:31:30 ago on Mon 11 Mar 2024 12:53:42 PM GMT.
Error: No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.

Thank you happy helper! Why didn't I think of that? :) I'll try to whip up a PR to fix this.

jboero commented 4 months ago

https://github.com/rpm-software-management/dnf/blob/96f8d79c37e119ff56f730797865121b63241a6b/dnf/cli/cli.py#L603

jboero commented 4 months ago

https://github.com/rpm-software-management/dnf/pull/2064