Blame SOURCES/0001-epiphany-Don-t-adopt-apps-that-have-package-name-set.patch

111df0
From d51c480fc9f1bcb1b878be156f88741a6bbb364d Mon Sep 17 00:00:00 2001
111df0
From: Kalev Lember <klember@redhat.com>
111df0
Date: Tue, 24 Sep 2019 11:16:14 +0200
111df0
Subject: [PATCH 1/2] epiphany: Don't adopt apps that have package name set
111df0
111df0
In Fedora appstream metadata we have <component type="webapp"> apps that
111df0
are supposed to be installed as packages and have the pkgname set.
111df0
111df0
Instead of adopting them in the epiphany plugin, leave them for the
111df0
packagekit plugin to handle.
111df0
111df0
https://gitlab.gnome.org/GNOME/gnome-software/issues/802
111df0
---
111df0
 plugins/epiphany/gs-plugin-epiphany.c | 4 +++-
111df0
 1 file changed, 3 insertions(+), 1 deletion(-)
111df0
111df0
diff --git a/plugins/epiphany/gs-plugin-epiphany.c b/plugins/epiphany/gs-plugin-epiphany.c
111df0
index 44e2e5bd..3db666e8 100644
111df0
--- a/plugins/epiphany/gs-plugin-epiphany.c
111df0
+++ b/plugins/epiphany/gs-plugin-epiphany.c
111df0
@@ -56,8 +56,10 @@ gs_plugin_initialize (GsPlugin *plugin)
111df0
 void
111df0
 gs_plugin_adopt_app (GsPlugin *plugin, GsApp *app)
111df0
 {
111df0
-	if (gs_app_get_kind (app) == AS_APP_KIND_WEB_APP)
111df0
+	if (gs_app_get_kind (app) == AS_APP_KIND_WEB_APP &&
111df0
+	    gs_app_get_bundle_kind (app) != AS_BUNDLE_KIND_PACKAGE) {
111df0
 		gs_app_set_management_plugin (app, gs_plugin_get_name (plugin));
111df0
+	}
111df0
 }
111df0
 
111df0
 static gchar *
111df0
-- 
111df0
2.24.1
111df0