[gnome-packagekit/gnome-2-30] Fix up a crash where installing a file failed. Fixes rh#586414
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit/gnome-2-30] Fix up a crash where installing a file failed. Fixes rh#586414
- Date: Sat, 22 May 2010 07:02:37 +0000 (UTC)
commit 5d9670f9476943fda013c7ffe681a5c3302c1e3a
Author: Richard Hughes <richard hughsie com>
Date: Wed Apr 28 09:07:19 2010 +0100
Fix up a crash where installing a file failed. Fixes rh#586414
src/gpk-dbus-task.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/gpk-dbus-task.c b/src/gpk-dbus-task.c
index 45440b7..00dce66 100644
--- a/src/gpk-dbus-task.c
+++ b/src/gpk-dbus-task.c
@@ -615,9 +615,14 @@ gpk_dbus_task_install_files_cb (PkTask *task, GAsyncResult *res, GpkDbusTask *dt
/* check error code */
error_code = pk_results_get_error_code (results);
if (error_code != NULL) {
- egg_warning ("failed to install file: %s, %s", pk_error_enum_to_text (pk_error_get_code (error_code)), pk_error_get_details (error_code));
+ egg_warning ("failed to install file: %s, %s",
+ pk_error_enum_to_text (pk_error_get_code (error_code)),
+ pk_error_get_details (error_code));
gpk_dbus_task_handle_error (dtask, error_code);
- error_dbus = g_error_new (GPK_DBUS_ERROR, gpk_dbus_task_get_code_from_pkerror (error_code), "%s", error->message);
+ error_dbus = g_error_new (GPK_DBUS_ERROR,
+ gpk_dbus_task_get_code_from_pkerror (error_code),
+ "failed to install file: %s",
+ pk_error_get_details (error_code));
gpk_dbus_task_dbus_return_error (dtask, error_dbus);
g_error_free (error_dbus);
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]