[gnome-software/wip/kalev/fix-cockpit-install: 1/2] epiphany: Don't adopt apps that have package name set
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/kalev/fix-cockpit-install: 1/2] epiphany: Don't adopt apps that have package name set
- Date: Tue, 24 Sep 2019 09:21:20 +0000 (UTC)
commit c1ec7ba89cc9f50e7a96c708bf60017897dd8e62
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]