[gnome-software/wip/ubuntu-3-22: 2/2] snap: Use developer field
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-3-22: 2/2] snap: Use developer field
- Date: Tue, 5 Sep 2017 22:34:00 +0000 (UTC)
commit eb2e2e5538ad7ce61dca87cb430b5638923eb550
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 36a702d..1be564c 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -538,6 +538,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;
@@ -568,6 +570,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]