[packagekit] Multiple entries to WhatProvides and SearchFile

Daniel Nicoletti dantti85-pk at yahoo.com.br
Thu Sep 24 06:16:39 PDT 2009


May I ask how the GUI will detect OR?
In Aptcc SearchName('k3b burning')
is treated as k3b AND burning, will the user need to type
k3b OR burning...

Daniel.

--- Em qui, 24/9/09, Richard Hughes <hughsient at gmail.com> escreveu:

> De: Richard Hughes <hughsient at gmail.com>
> Assunto: Re: [packagekit] Multiple entries to WhatProvides and SearchFile
> Para: "PackageKit users and developers list" <packagekit at lists.freedesktop.org>
> Data: Quinta-feira, 24 de Setembro de 2009, 5:33
> On 23/09/2009, Richard Hughes <hughsient at gmail.com>
> wrote:
> > Well, in the case I'm suggesting here, no, I just
> don't want to break
> > API in a stable series (adding API is okay) -- but you
> do need to put
> > a limit to the amount of demarshalling and marshalling
> we're doing for
> > the sake of API purity. In 0.6.x we'll make more stuff
> STRV rather
> > STRING with delimiters.
> 
> In 1a51be0c2061c28361acf77196c6d06165b28412, I've added the
> following
> comment to SearchName, SearchDetails, SearchGroup,
> SearchFile and
> WhatProvides:
> 
> ---
> NOTE: On some backends an OR search can be specified by
> delimiting
> each value with &, so this query would become
> games-text&games-gui.
> It is recommended that front-end clients do not depend on
> this
> functionality at this time.
> In future versions of this specification the values
> argument will
> become a string array (and no delimiters), and all backends
> will have
> to accept multiple requests.
> In this instance the failure to find one of the values
> would not be
> fatal, but the failure to find all of the values would be
> fatal.
> ---
> 
> So, if you want your backend to support multiple OR
> requests, then
> please make it split the search string on the '&'
> delimiter. It's
> harmless to add now, and I've done it for yum. If you
> don't, that's no
> problem, but the backend might stop working when we fork
> 0.6.x (some
> months away).
> 
> Richard.
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
> 


      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com


More information about the PackageKit mailing list