[gnome-packagekit] bugfix: add the missing code to simulate removal for PackageKit >= 0.5.2, to fix removing packages u



commit bf74d72b7ea804f099bdc87473a13464798fa516
Author: Richard Hughes <richard hughsie com>
Date:   Wed Sep 23 09:42:55 2009 +0100

    bugfix: add the missing code to simulate removal for PackageKit >= 0.5.2, to fix removing packages using gpk-applicaton

 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 0f000d2..d998679 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -2056,11 +2056,13 @@ gpk_application_button_apply_cb (GtkWidget *widget, GpkApplication *application)
 			goto out;
 		}
 
-		/* install */
-#if !PK_CHECK_VERSION(0,5,2)
+		/* remove */
+#if PK_CHECK_VERSION(0,5,2)
+		ret = pk_client_simulate_remove_packages (application->priv->client_primary, package_ids, &error);
+#else
 		application->priv->dep_check_info_only = FALSE;
-#endif
 		ret = pk_client_get_requires (application->priv->client_primary, pk_bitfield_value (PK_FILTER_ENUM_INSTALLED), package_ids, TRUE, &error);
+#endif
 		if (!ret) {
 			egg_warning ("failed to get requires: %s", error->message);
 			g_error_free (error);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]