struct pakfire_packagelist** list) {
Queue matches;
Dataiterator di;
- int dflags = 0;
int r;
// Get the pool ready
// Initialize the result queue
queue_init(&matches);
- if (flags & PAKFIRE_SEARCH_NAME_ONLY)
- dflags = SEARCH_STRING|SEARCH_GLOB;
- else
- dflags = SEARCH_SUBSTRING|SEARCH_NOCASE|SEARCH_GLOB;
-
// Setup the data interator
- dataiterator_init(&di, pakfire->pool, 0, 0, 0, what, dflags);
+ dataiterator_init(&di, pakfire->pool, 0, 0, 0, what, SEARCH_SUBSTRING|SEARCH_NOCASE);
const Id keys[] = {
SOLVABLE_NAME,