[gnome-software] flatpak: Also include the runtimes when getting the installed list



commit 30bd453b3481219545366eb2b2f185d5f5e53fe4
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jul 13 17:16:42 2017 +0100

    flatpak: Also include the runtimes when getting the installed list
    
    There are going to be a small number of runtimes. It's better to filter these in
    the presentation layer as the runtimes will predicatbly be in the global cache.

 plugins/flatpak/gs-flatpak.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index b18eff1..7caa726 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -814,13 +814,7 @@ gs_flatpak_add_installed (GsFlatpak *self, GsAppList *list,
        for (i = 0; i < xrefs->len; i++) {
                FlatpakInstalledRef *xref = g_ptr_array_index (xrefs, i);
                g_autoptr(GError) error_local = NULL;
-               g_autoptr(GsApp) app = NULL;
-
-               /* only apps */
-               if (flatpak_ref_get_kind (FLATPAK_REF (xref)) != FLATPAK_REF_KIND_APP)
-                       continue;
-
-               app = gs_flatpak_create_installed (self, xref, &error_local);
+               g_autoptr(GsApp) app = gs_flatpak_create_installed (self, xref, &error_local);
                if (app == NULL) {
                        g_warning ("failed to add flatpak: %s", error_local->message);
                        continue;


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