[Yum-devel] [PATCH] reduce duplicate package output from search

seth vidal skvidal at linux.duke.edu
Wed Feb 28 04:14:23 UTC 2007


On Tue, 2007-02-27 at 23:08 -0500, James Bowes wrote:
> Hi all:
> 
> 'yum search' outputs the package name,version, etc line for each field
> that it matches with the search value. This always bugged me; you have
> to wade through duplicate data to find what you want.
> 
> The attached patch only outputs the package name etc line once per
> matched package.
> 
> Before:
> 
> $ PYTHONPATH=. sudo python yummain.py search zsh -d1 | wc -l
> 12
> $ PYTHONPATH=. sudo python yummain.py search git -d1 | wc -l
> 130
> 
> After:
> 
> $ PYTHONPATH=. sudo python yummain.py search zsh -d1 | wc -l
> 6
> $ PYTHONPATH=. sudo python yummain.py search git -d1 | wc -l
> 88
> 
> Oddly enough, it seems like the search and related display code is
> almost designed with this in mind. Am I covering something that has
> already been discussed?
> 

 the idea was to output each item and what it matched. However, you're
right a single item + all the matched it would work. As long as it's not
taking much longer to reach the yields then it makes sense to me.

-sv





More information about the Yum-devel mailing list