[packagekit] packagekit: Branch 'master' - 2 commits

Richard Hughes hughsient at kemper.freedesktop.org
Sun Jan 20 14:50:13 PST 2008


 client/pk-monitor.c       |   13 +++++++++++++
 libpackagekit/pk-client.c |    4 ++--
 2 files changed, 15 insertions(+), 2 deletions(-)

New commits:
commit 321c00101776f9d60b29656ee03b20a1d4be428b
Author: Richard Hughes <richard at hughsie.com>
Date:   Sun Jan 20 22:22:00 2008 +0000

    fix one of the TransactionStatusChanged to StatusChanged instances in libpackagekit

diff --git a/libpackagekit/pk-client.c b/libpackagekit/pk-client.c
index d884bd7..3962393 100644
--- a/libpackagekit/pk-client.c
+++ b/libpackagekit/pk-client.c
@@ -2693,9 +2693,9 @@ pk_client_init (PkClient *client)
 	dbus_g_proxy_connect_signal (proxy, "ProgressChanged",
 				     G_CALLBACK (pk_client_progress_changed_cb), client, NULL);
 
-	dbus_g_proxy_add_signal (proxy, "TransactionStatusChanged",
+	dbus_g_proxy_add_signal (proxy, "StatusChanged",
 				 G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID);
-	dbus_g_proxy_connect_signal (proxy, "TransactionStatusChanged",
+	dbus_g_proxy_connect_signal (proxy, "StatusChanged",
 				     G_CALLBACK (pk_client_status_changed_cb), client, NULL);
 
 	dbus_g_proxy_add_signal (proxy, "Package",
commit fa7014d286b9e32b0a4c9ec581c970d55700327e
Author: Richard Hughes <richard at hughsie.com>
Date:   Sun Jan 20 22:19:47 2008 +0000

    add status data to the pkmon tool

diff --git a/client/pk-monitor.c b/client/pk-monitor.c
index d7f118a..0f51a5c 100644
--- a/client/pk-monitor.c
+++ b/client/pk-monitor.c
@@ -77,6 +77,17 @@ pk_monitor_require_restart_cb (PkClient *client, PkRestartEnum restart, const gc
 }
 
 /**
+ * pk_monitor_status_changed_cb:
+ **/
+static void
+pk_monitor_status_changed_cb (PkClient *client, PkStatusEnum status, gpointer data)
+{
+	gchar *tid = pk_client_get_tid (client);
+	g_print ("%s\tStatus: %s\n", tid, pk_status_enum_to_text (status));
+	g_free (tid);
+}
+
+/**
  * pk_monitor_finished_cb:
  **/
 static void
@@ -157,6 +168,8 @@ main (int argc, char *argv[])
 			  G_CALLBACK (pk_monitor_message_cb), NULL);
 	g_signal_connect (client, "require-restart",
 			  G_CALLBACK (pk_monitor_require_restart_cb), NULL);
+	g_signal_connect (client, "status-changed",
+			  G_CALLBACK (pk_monitor_status_changed_cb), NULL);
 
 	tlist = pk_task_list_new ();
 	g_signal_connect (tlist, "task-list-changed",



More information about the PackageKit mailing list