[gnome-software/wip/jrocha/install-updated-apps-runtimes: 1/2] flatpak: Setup scope when refining the origin



commit d8e9b6027d69121a012b3911a17a5599d091d7d1
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Thu Oct 26 22:44:02 2017 +0200

    flatpak: Setup scope when refining the origin
    
    This will set the scope of apps when refining their origin as it's a
    good chance to do it (we already know which installation the app is
    coming from). This way we prevent having to eventually set up the
    scope later which would have to look for the ref again which has some
    impact in the performance.

 plugins/flatpak/gs-flatpak.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 1b46fd83..9a870283 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -1429,6 +1429,7 @@ gs_flatpak_refine_origin_from_installation (GsFlatpak *self,
                        g_debug ("found remote %s", remote_name);
                        gs_app_set_origin (app, remote_name);
                        gs_flatpak_app_set_commit (app, flatpak_ref_get_commit (FLATPAK_REF (xref)));
+                       gs_plugin_refine_item_scope (self, app);
                        return TRUE;
                }
                g_debug ("failed to find remote %s: %s",


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