[gnome-software/wip/ubuntu-3-22: 12/13] snap: Use developer field
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-3-22: 12/13] snap: Use developer field
- Date: Thu, 26 Oct 2017 21:47:03 +0000 (UTC)
commit 70835b852832b7a66f268f0efd011bbfc43d72d0
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 049106b..53653e5 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -561,6 +561,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;
@@ -591,6 +593,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]