[packagekit] Implementation of searchFiles in APT backend
sebi at glatzor.de
Wed Oct 28 03:42:13 PDT 2009
On Tue, Oct 27, 2009 at 08:38:22AM +0000, Richard Hughes wrote:
> 2009/10/25 Matthias Klumpp <matthias at nlinux.org>:
> > It may be important that (on this early stage) I call searchFiles one after
> > one. If i supmit the request parallel I'm sure this will be a lot faster.
> I've switched gnome-packagekit to use the OR search in SearchFiles by
> default, so you can do:
> and it treats it like a giant OR search. In the future SearchFiles()
> will take a string array (and not a string) which will remove the need
> to use a silly separator value.
> Not all the backends support '&' as it's newly introduced and optional
> in 0.5.x, so caveat emptor.
The apt backend can now make use of apt-file if it is installed.
Unfortunately the apt-file regex support seems to not allow
alternation, e.g apt-file -x find "/usr/bin/xterm|/usr/bin/abiword"
So searching for several files in one call isn't possible.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the PackageKit