[gnome-software/wip/temp/ubuntu-xenial-rebased: 57/326] Report installed size
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 57/326] Report installed size
- Date: Fri, 29 Apr 2016 09:52:06 +0000 (UTC)
commit 4d8f910fd60faad4282b09d0032f25af8a8b7e23
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Jan 26 14:01:21 2016 +1300
Report installed size
src/plugins/gs-plugin-snappy.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snappy.c b/src/plugins/gs-plugin-snappy.c
index ee16097..9c53aa6 100644
--- a/src/plugins/gs-plugin-snappy.c
+++ b/src/plugins/gs-plugin-snappy.c
@@ -28,6 +28,8 @@
#include <libsoup/soup.h>
#include <json-glib/json-glib.h>
+// snapd API documentation is at https://github.com/ubuntu-core/snappy/blob/master/docs/rest.md
+
struct GsPluginPrivate {
};
@@ -277,6 +279,7 @@ get_apps (GsPlugin *plugin, GList **list, AppFilterFunc filter_func, gpointer us
}
else if (g_strcmp0 (status, "not installed") == 0)
gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
+ gs_app_set_size (app, json_object_get_int_member (package, "installed_size"));
gs_app_set_name (app, GS_APP_QUALITY_HIGHEST, json_object_get_string_member (package,
"name"));
gs_app_set_summary (app, GS_APP_QUALITY_HIGHEST, json_object_get_string_member (package,
"description"));
gs_app_set_version (app, json_object_get_string_member (package, "version"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]