[packagekit] Simpler search

Tim Lauridsen tim.lauridsen at googlemail.com
Thu Feb 14 01:51:27 PST 2008


Richard Hughes wrote:
> On Wed, 2008-02-13 at 20:41 +0100, Patryk Zawadzki wrote:
>> On Feb 13, 2008 8:31 PM, Richard Hughes <hughsient at gmail.com> wrote:
>>> On Wed, 2008-02-13 at 20:28 +0100, Patryk Zawadzki wrote:
>>> >From a usability POV these should really be one.
>>> I'm not so sure (but up for a lively debate :-) - I often _know_ the
>>> package name of something I want to install, for instance "kpowersave".
>> Is PackageKit able to perform live searches? If so, the first result
>> should be instant in this case.
> 
> Well, there's a gconf key for it, but none of the backends seem fast
> enough for this just yet.
> 

The only way to do live search in a sane way is to have the complete 
list of packageid in mem, in the frontend.

i have made an 'get-packages <filter>' method in the yum backend to play 
with.

look pretty fast to me.

# time sudo ./get-packages.py none | wc -l
13535

real	0m3.098s
user	0m2.819s
sys	0m0.278s

Tim



More information about the PackageKit mailing list