[gnome-packagekit] Don't critically warn when we have no packages selected after install
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-packagekit] Don't critically warn when we have no packages selected after install
- Date: Mon, 1 Jun 2009 04:35:54 -0400 (EDT)
commit 51e6b4feadc2e54610aa094c4ebcdc8a631f53c7
Author: Richard Hughes <richard hughsie com>
Date: Mon Jun 1 09:34:01 2009 +0100
Don't critically warn when we have no packages selected after install
---
src/gpk-application.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 4494b83..8493392 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -1361,9 +1361,11 @@ gpk_application_finished_cb (PkClient *client, PkExitEnum exit_enum, guint runti
g_idle_add ((GSourceFunc) gpk_application_perform_search_idle_cb, application);
/* this is async */
- package_ids = pk_package_ids_from_id (application->priv->package);
- gpk_helper_run_show (application->priv->helper_run, package_ids);
- g_strfreev (package_ids);
+ if (application->priv->package != NULL) {
+ package_ids = pk_package_ids_from_id (application->priv->package);
+ gpk_helper_run_show (application->priv->helper_run, package_ids);
+ g_strfreev (package_ids);
+ }
/* clear if success */
g_ptr_array_foreach (application->priv->package_list, (GFunc) g_free, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]