[packagekit] [PATCH 3/3] gpk-app:Use pk_task* instead pk_client* while searching

Zhang Qiang qiang.z.zhang at intel.com
Wed Apr 6 20:06:55 PDT 2011


pk_task* level contains more interaction interface, and this patch use
pk_task* instead pk_client* while searching to show more information,
such as asking user to accept signature.

without this patch, the search operation fails without any error info
if the repo signature is fail
---
 src/gpk-application.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gpk-application.c b/src/gpk-application.c
index 2249250..5a4bfa1 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -1612,19 +1612,19 @@ gpk_application_perform_search_name_details_file (gpointer user_data)
 	/* do the search */
 	searches = g_strsplit (search_text, " ", -1);
 	if (search_type == GPK_SEARCH_NAME) {
-		pk_client_search_names_async (PK_CLIENT(task),
+		pk_task_search_names_async (task,
 					     filters_current,
 					     searches, cancellable,
 					     (PkProgressCallback) gpk_application_progress_cb, NULL,
 					     (GAsyncReadyCallback) gpk_application_search_cb, NULL);
 	} else if (search_type == GPK_SEARCH_DETAILS) {
-		pk_client_search_details_async (PK_CLIENT(task),
+		pk_task_search_details_async (task,
 					     filters_current,
 					     searches, cancellable,
 					     (PkProgressCallback) gpk_application_progress_cb, NULL,
 					     (GAsyncReadyCallback) gpk_application_search_cb, NULL);
 	} else if (search_type == GPK_SEARCH_FILE) {
-		pk_client_search_files_async (PK_CLIENT(task),
+		pk_task_search_files_async (task,
 					     filters_current,
 					     searches, cancellable,
 					     (PkProgressCallback) gpk_application_progress_cb, NULL,
-- 
1.7.2.2




More information about the PackageKit mailing list