From 08af426e15d5caa7f3e14e0d89ddf7787cb9a001 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Fri, 6 Aug 2010 11:21:01 +0200 Subject: [PATCH] - allow file list globs --- examples/solv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/solv.c b/examples/solv.c index 1cb2054..636e9ca 100644 --- a/examples/solv.c +++ b/examples/solv.c @@ -2181,10 +2181,10 @@ mkselect(Pool *pool, int mode, char *name, Queue *job) if (*name == '/') { Dataiterator di; + int type = strpbrk(name, "[*?") == 0 ? SEARCH_STRING : SEARCH_GLOB; Queue q; - queue_init(&q); - dataiterator_init(&di, pool, mode == SOLVER_ERASE ? pool->installed : 0, 0, SOLVABLE_FILELIST, name, SEARCH_STRING|SEARCH_FILES|SEARCH_COMPLETE_FILELIST); + dataiterator_init(&di, pool, mode == SOLVER_ERASE ? pool->installed : 0, 0, SOLVABLE_FILELIST, name, type|SEARCH_FILES|SEARCH_COMPLETE_FILELIST); while (dataiterator_step(&di)) { Solvable *s = pool->solvables + di.solvid; -- 2.7.4