summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2016-10-27 14:52:55 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2016-10-27 14:53:17 +0900
commitba4d7201b44ecec1182b53571d98b2be4ca50264 (patch)
tree099cf6127f7020528a4d05083fc059cbf3ad7db5 /tools
parent1be9896f3702c4996e1a43e1c9b5c18366ff42b9 (diff)
downloadlibsolv-ba4d7201b44ecec1182b53571d98b2be4ca50264.tar.gz
libsolv-ba4d7201b44ecec1182b53571d98b2be4ca50264.tar.bz2
libsolv-ba4d7201b44ecec1182b53571d98b2be4ca50264.zip
Imported Upstream version 0.6.5upstream/0.6.5
Change-Id: If69a2170a61800e3f778ec1f78364531c9642950 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testsolv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testsolv.c b/tools/testsolv.c
index 34f393b..279b43b 100644
--- a/tools/testsolv.c
+++ b/tools/testsolv.c
@@ -141,8 +141,11 @@ main(int argc, char **argv)
printf("test %d:\n", multijob++);
if (list)
{
+ int selflags = SELECTION_NAME|SELECTION_PROVIDES|SELECTION_CANON|SELECTION_DOTARCH|SELECTION_REL|SELECTION_GLOB|SELECTION_FLAT;
+ if (*list == '/')
+ selflags |= SELECTION_FILELIST;
queue_empty(&job);
- selection_make(pool, &job, list, SELECTION_NAME|SELECTION_PROVIDES|SELECTION_FILELIST|SELECTION_CANON|SELECTION_DOTARCH|SELECTION_REL|SELECTION_GLOB|SELECTION_FLAT);
+ selection_make(pool, &job, list, selflags);
if (!job.elements)
printf("No match\n");
else