File debug.patch of Package PackageKit-pkcon

Index: PackageKit-1.2.5/client/pk-console.c
===================================================================
--- PackageKit-1.2.5.orig/client/pk-console.c
+++ PackageKit-1.2.5/client/pk-console.c
@@ -508,6 +508,7 @@ pk_console_defer_status_update_cb (gpoin
 	const gchar *text;
 
 	text = pk_status_enum_to_localised_text (ctx->defered_status);
+    g_print ("\ndefer_status_update: %s\n", text);
 	pk_progress_bar_start (ctx->progressbar, text);
 	g_source_remove (ctx->defered_status_id);
 	ctx->defered_status_id = 0;
@@ -560,6 +561,7 @@ pk_console_progress_cb (PkProgress *prog
 			g_print ("%s:\t%s\n", _("Transaction"), text);
 			return;
 		}
+        g_print ("\nPK_PROGRESS_TYPE_ROLE\n");
 		pk_progress_bar_start (ctx->progressbar, text);
 	}
 
@@ -595,6 +597,7 @@ pk_console_progress_cb (PkProgress *prog
 			g_print ("%s:\t%i\n", _("Percentage"), percentage);
 			return;
 		}
+        g_print ("\nset percentage: %s\n", percentage);
 		pk_progress_bar_set_percentage (ctx->progressbar, percentage);
 	}
 
@@ -631,6 +634,7 @@ pk_console_progress_cb (PkProgress *prog
 			}
 		} else {
 			text = pk_status_enum_to_localised_text (status);
+            g_print ("\nPK_STATUS_ENUM_NOT_FINISHED\n");
 			pk_progress_bar_start (ctx->progressbar, text);
 		}
 	}
@@ -653,6 +657,7 @@ pk_console_finished_cb (GObject *object,
 
 	/* no more progress */
 	if (ctx->is_console) {
+        g_print ("\nno more progress\n");
 		pk_progress_bar_end (ctx->progressbar);
 	} else {
 		/* TRANSLATORS: the results from the transaction */
@@ -1178,6 +1183,7 @@ pk_console_update_system (PkConsoleCtx *
 	pk_package_sack_remove_by_filter (sack, &pk_console_update_system_filter_helper, NULL);
 	package_ids = pk_package_sack_get_ids (sack);
 	if (g_strv_length (package_ids) == 0) {
+        g_print ("\nupdate system: no updates\n");
 		pk_progress_bar_end (ctx->progressbar);
 		/* TRANSLATORS: there are no updates, so nothing to do */
 		g_print ("%s\n", _("No packages require updating to newer versions."));
openSUSE Build Service is sponsored by