[gnome-software] snap: Implement gs_plugin_adopt_app
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] snap: Implement gs_plugin_adopt_app
- Date: Fri, 1 Sep 2017 04:27:38 +0000 (UTC)
commit 663db9d870f704a6e6d3e8535cdb9d15eb7baf71
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Sep 1 16:16:16 2017 +1200
snap: Implement gs_plugin_adopt_app
plugins/snap/gs-plugin-snap.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 10dafe6..6b22a50 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -72,6 +72,13 @@ gs_plugin_initialize (GsPlugin *plugin)
gs_plugin_set_appstream_id (plugin, "org.gnome.Software.Plugin.Snap");
}
+void
+gs_plugin_adopt_app (GsPlugin *plugin, GsApp *app)
+{
+ if (gs_app_get_bundle_kind (app) == AS_BUNDLE_KIND_SNAP)
+ gs_app_set_management_plugin (app, "snap");
+}
+
static void
snapd_error_convert (GError **perror)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]