[gnome-software/wip/rancell/ubuntu-3-20-4: 12/28] Allow transition from AS_APP_STATE_INSTALLED to AS_APP_STATE_UPDATABLE
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/ubuntu-3-20-4: 12/28] Allow transition from AS_APP_STATE_INSTALLED to AS_APP_STATE_UPDATABLE
- Date: Fri, 23 Jun 2017 00:56:36 +0000 (UTC)
commit 1fc32a4c392eba59cc119799ae3d99b38d9d90d5
Author: William Hua <william hua canonical com>
Date: Wed Apr 13 10:23:32 2016 -0400
Allow transition from AS_APP_STATE_INSTALLED to AS_APP_STATE_UPDATABLE
src/gs-app.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 21d2351..2086736 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -498,6 +498,8 @@ gs_app_set_state_internal (GsApp *app, AsAppState state)
case AS_APP_STATE_INSTALLED:
/* installed has to go into an action state */
if (state == AS_APP_STATE_UNKNOWN ||
+ state == AS_APP_STATE_UPDATABLE ||
+ state == AS_APP_STATE_UPDATABLE_LIVE ||
state == AS_APP_STATE_REMOVING)
state_change_ok = TRUE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]