[gnome-software] Load user and system merge components into the flatpak stores



commit f4e7997118a001aab352d7c91697a57d4e5e1804
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

 src/plugins/gs-flatpak.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index ff7fa80..ef4d396 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -383,6 +383,17 @@ 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)) {
+               gs_utils_error_convert_appstream (error);
+               return FALSE;
+       }
+
        /* we use a permissions helper to elevate privs */
        ptask = as_profile_start_literal (gs_plugin_get_profile (self->plugin),
                                          "flatpak::setup");


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