Mailinglist Archive: zypp-devel (230 mails)
| < Previous | Next > |
Re: [zypp-devel] Re: RFC: ZYpp application layer comments
- From: "Duncan Mac-Vicar P." <dmacvicar@xxxxxxx>
- Date: Thu, 07 Feb 2008 23:18:45 +0100
- Message-id: <47AB83C5.4050104@xxxxxxx>
Michael Matz wrote:
Actually that is what I am going to use to replace ResolvableQuery, it
should be straightforward, and we have already the attribute class, and
this time the callback can send back a ResObject, which was not possible
before.
Duncan
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
I have no opinion on the libzypp API for searches, but I can tell you
what
the satsolver library will provide (and partly provides already):
It has a generic repo_search function. The results will be given to you
via a callback function. It will accept strings and numbers, searching
in one or all solvables, in one or all attributes, for substrings, globs
or regexps, case sensitive or case insensitive. Via the callback you will
be given the information of which solvable matches, in which attribute,
and what the value of it is.
Using the repo_search function will be much faster and take much less
memory than implementing the searches by hand in libzypp (those would need
to retrieve all attributes one by one, or (even worse) cache that data
itself).
Ciao,
Michael.
Actually that is what I am going to use to replace ResolvableQuery, it
should be straightforward, and we have already the attribute class, and
this time the callback can send back a ResObject, which was not possible
before.
Duncan
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |