[Yum-devel] pkgSack.searchNevra()
Phil Knirsch
pknirsch at redhat.com
Mon Nov 7 09:33:39 UTC 2005
seth vidal wrote:
> Hey folks,
> I was looking at the searchNevra() method of the pkgSack. In the repomd
> sack it returns things matching as many of the provided nevra info as
> possible. In the sqlite sack it only returns exact matches.
>
> So if you don't specify one component to the sqlite method it won't
> return anything.
>
> I think it should probably return as much as possible as it has and
> ignore the NoneType args.
>
> So if I pass pkgSack.SearchNevra(name='zsh')
> it should return all zsh's in the pkgSack.
>
> Does that make sense to everyone?
>
Sure, as more often than not you probably don't know/have the exact
nevra of a package (because you're looking for it in the first place
using searchNevra() anyway ;).
Read ya, Phil
--
Philipp Knirsch | Tel.: +49-711-96437-470
Development | Fax.: +49-711-96437-111
Red Hat GmbH | Email: Phil Knirsch <phil at redhat.de>
Hauptstaetterstr. 58 | Web: http://www.redhat.de/
D-70178 Stuttgart
Motd: You're only jealous cos the little penguins are talking to me.
More information about the Yum-devel
mailing list