[gnome-software/wip/hughsie/libxmlb: 18/19] flatpak: Only refine applications with the FLATPAK bundle kind



commit 91137c16488e799586d7a760ced096d2606dd085
Author: Richard Hughes <richard hughsie com>
Date:   Mon Oct 15 13:31:36 2018 +0100

    flatpak: Only refine applications with the FLATPAK bundle kind

 plugins/flatpak/gs-plugin-flatpak.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/plugins/flatpak/gs-plugin-flatpak.c b/plugins/flatpak/gs-plugin-flatpak.c
index 1b7c4d58..ee01017b 100644
--- a/plugins/flatpak/gs-plugin-flatpak.c
+++ b/plugins/flatpak/gs-plugin-flatpak.c
@@ -295,6 +295,12 @@ gs_plugin_flatpak_refine_app (GsPlugin *plugin,
        GsPluginData *priv = gs_plugin_get_data (plugin);
        GsFlatpak *flatpak = NULL;
 
+       /* not us */
+       if (gs_app_get_bundle_kind (app) != AS_BUNDLE_KIND_FLATPAK) {
+               g_debug ("%s not a package, ignoring", gs_app_get_unique_id (app));
+               return TRUE;
+       }
+
        /* we have to look for the app in all GsFlatpak stores */
        if (gs_app_get_scope (app) == AS_APP_SCOPE_UNKNOWN) {
                for (guint i = 0; i < priv->flatpaks->len; i++) {


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