summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2010-08-06 11:21:01 +0200
committerMichael Schroeder <mls@suse.de>2010-08-06 11:21:01 +0200
commit08af426e15d5caa7f3e14e0d89ddf7787cb9a001 (patch)
treec5a001d5f2bc6fc23037d84d46364e0bb0bf8395 /examples
parentb861b7a4c988137640635fa04d494bf9388e6ed7 (diff)
downloadlibsolv-08af426e15d5caa7f3e14e0d89ddf7787cb9a001.tar.gz
libsolv-08af426e15d5caa7f3e14e0d89ddf7787cb9a001.tar.bz2
libsolv-08af426e15d5caa7f3e14e0d89ddf7787cb9a001.zip
- allow file list globs
Diffstat (limited to 'examples')
-rw-r--r--examples/solv.c4
1 files 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;