[Yum-devel] [PATCH] Fix searching to be more DWIM, again, again, again... test: "kvm manager"
seth vidal
skvidal at fedoraproject.org
Fri Jan 7 22:34:36 UTC 2011
On Fri, 2011-01-07 at 16:39 -0500, James Antill wrote:
> ---
> cli.py | 11 +++++++++--
> 1 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/cli.py b/cli.py
> index 06bfb68..7c12f43 100644
> --- a/cli.py
> +++ b/cli.py
> @@ -1023,8 +1023,15 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
> matching = []
>
> for (po, keys, matched_value) in matching:
> - if len(keys) <= len(mkeys) or po in pos:
> - continue # Don't print stuff from N/S...
> + # Don't print matches for "a", "b", "c" on N+S+D when we already
> + # matched that on just N+S.
> + if len(keys) <= len(mkeys):
> + continue
> + # Just print the highest level of full matches, when we did
> + # minimal matches. Ie. "A", "B" match N+S, just print the
> + # "A", "B", "C", "D" full match, and not the "B", "C", "D" matches.
> + if mkeys and len(keys) < len(okeys):
> + continue
>
> if keys != okeys:
> if akeys:
ACK
-sv
More information about the Yum-devel
mailing list