[gnome-software/wip/kalev/more-distro-upgrades: 7/9] Correctly update app states during distro upgrade phases
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/kalev/more-distro-upgrades: 7/9] Correctly update app states during distro upgrade phases
- Date: Mon, 15 Feb 2016 16:15:27 +0000 (UTC)
commit 2be2b192de1644bd26b23b199e123fc9eb6c688e
Author: Kalev Lember <klember redhat com>
Date: Thu Feb 11 14:30:57 2016 +0100
Correctly update app states during distro upgrade phases
... following the scheme described in gs_upgrade_banner_refresh.
src/gs-plugin-loader.c | 4 ++--
src/plugins/gs-plugin-packagekit-refine.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index af21a64..d544ecf 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -2806,8 +2806,8 @@ gs_plugin_loader_app_action_async (GsPluginLoader *plugin_loader,
break;
case GS_PLUGIN_LOADER_ACTION_UPGRADE_DOWNLOAD:
state->function_name = "gs_plugin_app_upgrade_download";
- state->state_success = AS_APP_STATE_UNKNOWN;
- state->state_failure = AS_APP_STATE_UNKNOWN;
+ state->state_success = AS_APP_STATE_AVAILABLE;
+ state->state_failure = AS_APP_STATE_UPDATABLE;
break;
case GS_PLUGIN_LOADER_ACTION_UPGRADE_TRIGGER:
state->function_name = "gs_plugin_app_upgrade_trigger";
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index ef1ab35..d14d277 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -779,6 +779,7 @@ gs_plugin_app_upgrade_download (GsPlugin *plugin,
}
/* ask PK to download enough packages to upgrade the system */
+ gs_app_set_state (app, AS_APP_STATE_INSTALLING);
results = pk_client_upgrade_system (plugin->priv->client,
pk_bitfield_from_enums (PK_TRANSACTION_FLAG_ENUM_ONLY_DOWNLOAD,
-1),
gs_app_get_version (app),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]