[gnome-software/wip/william/cherry-pick-4: 14/23] Allow transition from AS_APP_STATE_INSTALLED to AS_APP_STATE_UPDATABLE



commit 03f5b675ab8ae3fa6d13ddd696b7f011ee9b81aa
Author: William Hua <william hua canonical com>
Date:   Thu Jun 2 15:46:42 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 323fde1..95784a0 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -547,6 +547,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]