[gnome-software] trivial: Don't do two update actions for live update
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Don't do two update actions for live update
- Date: Mon, 11 Apr 2016 09:31:25 +0000 (UTC)
commit ccf4f43209d4cb693f51a30bd019295cb0d67a9a
Author: Richard Hughes <richard hughsie com>
Date: Mon Apr 11 10:31:12 2016 +0100
trivial: Don't do two update actions for live update
src/gs-plugin-loader.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index e0e427b..c8dac94 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -2671,6 +2671,7 @@ gs_plugin_loader_app_action_async (GsPluginLoader *plugin_loader,
gs_plugin_loader_update_async (plugin_loader, list,
cancellable, callback,
user_data);
+ return;
}
if (action == GS_PLUGIN_LOADER_ACTION_REMOVE) {
@@ -2709,11 +2710,6 @@ gs_plugin_loader_app_action_async (GsPluginLoader *plugin_loader,
state->state_success = AS_APP_STATE_UNKNOWN;
state->state_failure = AS_APP_STATE_UNKNOWN;
break;
- case GS_PLUGIN_LOADER_ACTION_UPDATE:
- state->function_name = "gs_plugin_app_update";
- state->state_success = AS_APP_STATE_INSTALLED;
- state->state_failure = AS_APP_STATE_UPDATABLE_LIVE;
- break;
case GS_PLUGIN_LOADER_ACTION_UPGRADE_DOWNLOAD:
state->function_name = "gs_plugin_app_upgrade_download";
state->state_success = AS_APP_STATE_AVAILABLE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]