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