apk search returns duplicates
apk search at present spews duplicate strings (e.g. ones already printed), like so:
elizabethmyers:~$ apk search znc
znc-dev-1.6.1-r0
znc-modtcl-1.6.1-r0
znc-modperl-1.6.1-r0
znc-doc-1.6.1-r0
znc-dev-1.6.1-r0
znc-extra-1.6.1-r0
znc-1.6.1-r0
znc-modpython-1.6.1-r0
Note znc-dev is repeated twice. apk search should filter duplicates. I am unsure if this happens without the testing repo; I am on edge and have the main and testing repos enabled.
(from redmine: issue id 4770, created on 2015-10-13, closed on 2016-07-28)
- Changesets:
- Revision 7501f601 by Timo Teräs on 2015-11-09T08:06:57Z:
search: match packages only once
fixes #4770
apk_name_foreach_matching() can matches each package via it's
main name and all it's provides. Print matched packages only once.