[gnome-software/wip/ubuntu-3-22: 31/33] snap: Use developer field
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-3-22: 31/33] snap: Use developer field
- Date: Thu, 26 Oct 2017 21:44:18 +0000 (UTC)
commit 1c763767c6ac5e1079e21e351f9572cba70881cd
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Sep 5 16:05:39 2017 +1200
snap: Use developer field
src/plugins/gs-plugin-snap.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snap.c b/src/plugins/gs-plugin-snap.c
index bf87898..02dac90 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -560,6 +560,8 @@ gs_plugin_refine_app (GsPlugin *plugin,
install_date = gs_snapd_parse_date (json_object_get_string_member (local_snap,
"install-date"));
if (install_date != NULL)
gs_app_set_install_date (app, g_date_time_to_unix (install_date));
+ if (json_object_has_member (local_snap, "developer"))
+ gs_app_set_developer_name (app, json_object_get_string_member (local_snap,
"developer"));
icon_url = json_object_get_string_member (local_snap, "icon");
if (g_strcmp0 (icon_url, "") == 0)
icon_url = NULL;
@@ -590,6 +592,8 @@ gs_plugin_refine_app (GsPlugin *plugin,
gs_app_set_version (app, json_object_get_string_member (store_snap, "version"));
if (json_object_has_member (store_snap, "download-size"))
gs_app_set_size_download (app, json_object_get_int_member (store_snap,
"download-size"));
+ if (json_object_has_member (store_snap, "developer"))
+ gs_app_set_developer_name (app, json_object_get_string_member (store_snap,
"developer"));
if (icon_url == NULL) {
icon_url = json_object_get_string_member (store_snap, "icon");
if (g_strcmp0 (icon_url, "") == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]