report package
This commit is contained in:
parent
df00c60253
commit
7b5afaf2dc
@ -30,6 +30,15 @@
|
||||
|
||||
#include "pk-task-client.h"
|
||||
|
||||
/**
|
||||
* pk_console_package_cb:
|
||||
**/
|
||||
static void
|
||||
pk_console_package_cb (PkTaskClient *tclient, const gchar *package, const gchar *summary, gpointer data)
|
||||
{
|
||||
g_print ("%s\t%s\n", package, summary);
|
||||
}
|
||||
|
||||
/**
|
||||
* main:
|
||||
**/
|
||||
@ -90,6 +99,9 @@ main (int argc, char *argv[])
|
||||
}
|
||||
|
||||
tclient = pk_task_client_new ();
|
||||
g_signal_connect (tclient, "package",
|
||||
G_CALLBACK (pk_console_package_cb), NULL);
|
||||
|
||||
pk_task_client_set_sync (tclient, !async);
|
||||
if (strcmp (mode, "search") == 0) {
|
||||
/* do search */
|
||||
|
Loading…
Reference in New Issue
Block a user