[gnome-software/wip/hughsie/libxmlb: 8/13] flatpak: Only refine applications with the FLATPAK bundle kind
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/libxmlb: 8/13] flatpak: Only refine applications with the FLATPAK bundle kind
- Date: Tue, 16 Oct 2018 16:46:24 +0000 (UTC)
commit 78cac88dd5180dc44cc0995b3db81861b8806808
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]