[Yum-devel] [PATCH] reduce duplicate package output from search
James Bowes
jbowes at redhat.com
Wed Feb 28 04:08:58 UTC 2007
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?
-James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fewerdups.diff
Type: text/x-patch
Size: 1357 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070227/a0e70874/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070227/a0e70874/attachment.pgp
More information about the Yum-devel
mailing list