[gnome-software/wip/rancell/ubuntu-3-20-1: 69/72] trivial: Don't do two update actions for live update
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/ubuntu-3-20-1: 69/72] trivial: Don't do two update actions for live update
- Date: Sat, 17 Jun 2017 12:00:32 +0000 (UTC)
commit df8d4e6adac572dbcfe54cc3ee8dff4eb080f60a
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 f94cdd5..f26a142 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -2673,6 +2673,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) {
@@ -2711,11 +2712,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]