[gnome-software/wip/kalev/fix-cockpit-install: 4/5] epiphany: Don't adopt apps that have package name set



commit 9d7633ece771f3ec7777de299058e2084fbd32a0
Author: Kalev Lember <klember redhat com>
Date:   Tue Sep 24 11:16:14 2019 +0200

    epiphany: Don't adopt apps that have package name set
    
    In Fedora appstream metadata we have <component type="webapp"> 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 50e33f1f..9a83e800 100644
--- a/plugins/epiphany/gs-plugin-epiphany.c
+++ b/plugins/epiphany/gs-plugin-epiphany.c
@@ -42,8 +42,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 *


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