[gnome-software/wip/jrocha/install-updated-apps-runtimes: 16/17] flatpak: Setup scope when refining the origin
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/jrocha/install-updated-apps-runtimes: 16/17] flatpak: Setup scope when refining the origin
- Date: Fri, 26 Jan 2018 19:07:00 +0000 (UTC)
commit 266ba673a97884e95b196570c0d25487260ffcf4
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]