[gnome-software/wip/kalev/gnome-3-22-prep: 26/52] Load user and system merge components into the flatpak stores
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/kalev/gnome-3-22-prep: 26/52] Load user and system merge components into the flatpak stores
- Date: Mon, 7 Nov 2016 09:46:58 +0000 (UTC)
commit 4dc4143a1100c5bd7b816d1bf60b1b3b966c75dc
Author: Richard Hughes <richard hughsie com>
Date: Wed Oct 12 10:17:43 2016 +0100
Load user and system merge components into the flatpak stores
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=772524
(cherry picked from commit f4e7997118a001aab352d7c91697a57d4e5e1804)
src/plugins/gs-flatpak.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index e2c7497..1fdc6c8 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -291,6 +291,16 @@ gs_flatpak_setup (GsFlatpak *self, GCancellable *cancellable, GError **error)
const gchar *destdir;
g_autoptr(AsProfileTask) ptask = NULL;
+ /* load just the wildcards */
+ if (!as_store_load (self->store,
+ AS_STORE_LOAD_FLAG_ONLY_MERGE_APPS |
+ AS_STORE_LOAD_FLAG_ONLY_UNCOMPRESSED |
+ AS_STORE_LOAD_FLAG_APP_INFO_USER |
+ AS_STORE_LOAD_FLAG_APP_INFO_SYSTEM,
+ cancellable, error)) {
+ return FALSE;
+ }
+
/* we use a permissions helper to elevate privs */
ptask = as_profile_start_literal (gs_plugin_get_profile (self->plugin),
"flatpak::ensure-origin");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]