[gnome-software/wip/iainl/ubuntu-xenial] Don't implement gs_plugin_update as a full upgrade



commit 37cf1eadf915237b07a33d051e09cc1a6344b082
Author: William Hua <william hua canonical com>
Date:   Thu Apr 14 15:18:18 2016 -0400

    Don't implement gs_plugin_update as a full upgrade
    
    That function might be called with only a subset of a full upgrade

 src/plugins/gs-plugin-apt.cc |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.cc b/src/plugins/gs-plugin-apt.cc
index 528f624..b665ef4 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -1033,27 +1033,6 @@ set_list_state (GList      *apps,
 }
 
 gboolean
-gs_plugin_update (GsPlugin      *plugin,
-                 GList         *apps,
-                 GCancellable  *cancellable,
-                 GError       **error)
-{
-       set_list_state (apps, AS_APP_STATE_INSTALLING);
-
-       if (aptd_transaction (plugin, "UpgradeSystem", NULL, apps, g_variant_new_parsed ("(true,)"), error)) {
-               set_list_state (apps, AS_APP_STATE_INSTALLED);
-
-               unload_apt_db (plugin);
-
-               return TRUE;
-       } else {
-               set_list_state (apps, AS_APP_STATE_UPDATABLE_LIVE);
-
-               return FALSE;
-       }
-}
-
-gboolean
 gs_plugin_update_app (GsPlugin *plugin,
                      GsApp *app,
                      GCancellable *cancellable,


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