summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2007-08-27 19:06:03 +0100
committerRichard Hughes <richard@hughsie.com>2007-08-27 19:06:03 +0100
commitb5b714ba18ea5b94f9c31e36c9883c09b356c6cc (patch)
tree10f5da986579f53e0508ab5515bf68671dbd15d8 /client
parenta248861f43236a1f35e81bc541a582d5b44aca17 (diff)
add SearchFile into the API to allow us to match a file to a package
Diffstat (limited to 'client')
-rw-r--r--client/pk-console.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/client/pk-console.c b/client/pk-console.c
index 56af185d..d2c49069 100644
--- a/client/pk-console.c
+++ b/client/pk-console.c
@@ -153,7 +153,7 @@ pk_console_parse_multiple_commands (PkTaskClient *tclient, GPtrArray *array)
pk_console_usage ("you need to specify a search term");
} else {
pk_task_client_set_sync (tclient, TRUE);
- pk_task_client_search_details (tclient, "", value);
+ pk_task_client_search_details (tclient, "none", value);
remove_two = TRUE;
}
} if (strcmp (mode, "searchgroup") == 0) {
@@ -161,7 +161,15 @@ pk_console_parse_multiple_commands (PkTaskClient *tclient, GPtrArray *array)
pk_console_usage ("you need to specify a search term");
} else {
pk_task_client_set_sync (tclient, TRUE);
- pk_task_client_search_group (tclient, "", value);
+ pk_task_client_search_group (tclient, "none", value);
+ remove_two = TRUE;
+ }
+ } if (strcmp (mode, "searchfile") == 0) {
+ if (value == NULL) {
+ pk_console_usage ("you need to specify a search term");
+ } else {
+ pk_task_client_set_sync (tclient, TRUE);
+ pk_task_client_search_file (tclient, "none", value);
remove_two = TRUE;
}
} else if (strcmp (mode, "install") == 0) {