gnome-packagekit r328 - trunk/src
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-packagekit r328 - trunk/src
- Date: Wed, 8 Oct 2008 13:33:32 +0000 (UTC)
Author: rhughes
Date: Wed Oct 8 13:33:32 2008
New Revision: 328
URL: http://svn.gnome.org/viewvc/gnome-packagekit?rev=328&view=rev
Log:
from git
Modified:
trunk/src/gpk-client.c
trunk/src/gpk-install-local-file.c
Modified: trunk/src/gpk-client.c
==============================================================================
--- trunk/src/gpk-client.c (original)
+++ trunk/src/gpk-client.c Wed Oct 8 13:33:32 2008
@@ -1122,23 +1122,26 @@
g_return_val_if_fail (files_rel != NULL, FALSE);
array = pk_strv_to_ptr_array (files_rel);
-
+egg_warning ("moo1");
/* check the user wanted to call this method */
if (gclient->priv->show_confirm) {
ret = gpk_client_install_local_files_verify (gclient, array, error);
if (!ret)
goto out;
}
+egg_warning ("moo2");
/* check all files exist and are readable by the local user */
ret = gpk_client_install_local_files_check_exists (gclient, array, error);
if (!ret)
goto out;
+egg_warning ("moo3");
/* check all files exist and are readable by the local user */
ret = gpk_client_install_local_files_copy_private (gclient, array, error);
if (!ret)
goto out;
+egg_warning ("moo4");
files = pk_ptr_array_to_strv (array);
gclient->priv->retry_untrusted_value = FALSE;
@@ -1146,14 +1149,17 @@
if (!ret)
goto out;
+egg_warning ("moo5");
/* set title */
gpk_client_dialog_set_title (gclient->priv->dialog, _("Install local file"));
gpk_client_dialog_set_help_id (gclient->priv->dialog, NULL);
if (gclient->priv->show_progress)
gpk_client_dialog_show_page (gclient->priv->dialog, GPK_CLIENT_DIALOG_PAGE_PROGRESS, 0, 0);
+egg_warning ("moo6");
/* wait */
g_main_loop_run (gclient->priv->loop);
+egg_warning ("moo7");
/* do we need to try again with better auth? */
if (gclient->priv->retry_untrusted_value) {
@@ -3217,6 +3223,7 @@
gboolean ret;
gclient->priv = GPK_CLIENT_GET_PRIVATE (gclient);
+egg_warning (",oo");
gclient->priv->files_array = NULL;
gclient->priv->parent_window = NULL;
@@ -3235,6 +3242,7 @@
/* add application specific icons to search path */
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
GPK_DATA G_DIR_SEPARATOR_S "icons");
+egg_warning (",oo");
gclient->priv->vendor = gpk_vendor_new ();
gclient->priv->dialog = gpk_client_dialog_new ();
@@ -3246,10 +3254,13 @@
/* use gconf for session settings */
gclient->priv->gconf_client = gconf_client_get_default ();
+egg_warning (",oo");
/* get actions */
gclient->priv->control = pk_control_new ();
+egg_warning (",oo");
gclient->priv->roles = pk_control_get_actions (gclient->priv->control, NULL);
+egg_warning (",oo");
gclient->priv->client_action = pk_client_new ();
pk_client_set_use_buffer (gclient->priv->client_action, TRUE, NULL);
@@ -3273,6 +3284,7 @@
G_CALLBACK (gpk_client_files_cb), gclient);
g_signal_connect (gclient->priv->client_action, "distro-upgrade",
G_CALLBACK (pk_client_distro_upgrade_cb), gclient);
+egg_warning (",oo");
gclient->priv->client_resolve = pk_client_new ();
g_signal_connect (gclient->priv->client_resolve, "status-changed",
@@ -3284,7 +3296,7 @@
gclient->priv->client_secondary = pk_client_new ();
g_signal_connect (gclient->priv->client_secondary, "finished",
G_CALLBACK (gpk_client_secondary_finished_cb), gclient);
-
+egg_warning (",oo");
/* used for icons and translations */
gclient->priv->extra = pk_extra_new ();
ret = pk_extra_set_database (gclient->priv->extra, NULL);
Modified: trunk/src/gpk-install-local-file.c
==============================================================================
--- trunk/src/gpk-install-local-file.c (original)
+++ trunk/src/gpk-install-local-file.c Wed Oct 8 13:33:32 2008
@@ -82,10 +82,13 @@
_("You need to specify a file to install"), NULL);
return 1;
}
+egg_warning ("moo0");
error = NULL;
gclient = gpk_client_new ();
+egg_warning ("moo0.05");
gpk_client_set_interaction (gclient, GPK_CLIENT_INTERACT_ALWAYS);
+egg_warning ("moo0.1");
ret = gpk_client_install_local_files (gclient, files, NULL);
g_strfreev (files);
g_object_unref (gclient);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]