[gnome-software/gnome-3-20] Fix distro upgrade invalidation state transitions to actually work



commit 9a1e26b5e77aea91f7c44a98a7fd953c838617db
Author: Kalev Lember <klember redhat com>
Date:   Tue Jun 21 11:10:50 2016 +0200

    Fix distro upgrade invalidation state transitions to actually work

 src/gs-app.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 6effba8..d0256e4 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -524,6 +524,7 @@ gs_app_set_state_internal (GsApp *app, AsAppState state)
        case AS_APP_STATE_UPDATABLE:
                /* updatable has to go into an action state */
                if (state == AS_APP_STATE_UNKNOWN ||
+                   state == AS_APP_STATE_AVAILABLE ||
                    state == AS_APP_STATE_REMOVING)
                        state_change_ok = TRUE;
                break;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]