[gnome-software/gnome-3-34] Do not show non-applications in the installed panel



commit 0e55b67d73cf36296760577999524c3e07b441dd
Author: Richard Hughes <richard hughsie com>
Date:   Fri Oct 11 16:56:03 2019 +0100

    Do not show non-applications in the installed panel

 plugins/core/gs-plugin-appstream.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index 7979806b..858f8fff 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -535,6 +535,9 @@ gs_plugin_appstream_check_silo (GsPlugin *plugin,
                }
        }
 
+       /* regenerate with each minor release */
+       xb_builder_append_guid (builder, PACKAGE_VERSION);
+
        /* create per-user cache */
        blobfn = gs_utils_get_cache_filename ("appstream", "components.xmlb",
                                              GS_UTILS_CACHE_FLAG_WRITEABLE,
@@ -943,7 +946,7 @@ gs_plugin_add_installed (GsPlugin *plugin,
        locker = g_rw_lock_reader_locker_new (&priv->silo_lock);
 
        /* get all installed appdata files (notice no 'components/' prefix...) */
-       components = xb_silo_query (priv->silo, "component", 0, NULL);
+       components = xb_silo_query (priv->silo, "component/description/..", 0, NULL);
        if (components == NULL)
                return TRUE;
        for (guint i = 0; i < components->len; i++) {


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