[gnome-software/uajain/main-app-fix] flatpak: Set main app as updatable if it's extension is updatable



commit bbc9cd26e75d6edc86cdd0ab6f2de09aee7b1549
Author: Umang Jain <umang endlessm com>
Date:   Fri Jul 19 16:41:00 2019 +0530

    flatpak: Set main app as updatable if it's extension is updatable
    
    Currently, the code does not follow the debug message above.
    Hence, this patch tries to fix that, making main app as updatable
    if any of it's extension is updatable.

 plugins/flatpak/gs-flatpak.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 318839aa..014c758b 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -1353,7 +1353,7 @@ get_real_app_for_update (GsFlatpak *self,
                g_debug ("Related extension app %s of main app %s is updatable, so "
                         "setting the latter's state instead.", gs_app_get_unique_id (app),
                         gs_app_get_unique_id (main_app));
-               gs_app_set_state (app, AS_APP_STATE_UPDATABLE_LIVE);
+               gs_app_set_state (main_app, AS_APP_STATE_UPDATABLE_LIVE);
        }
 
        return main_app;


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