Michael Matz wrote:
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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org