[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 327/331] trivial: Add provenance and is_free in gs_app_to_string
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 327/331] trivial: Add provenance and is_free in gs_app_to_string
- Date: Wed, 4 May 2016 14:26:01 +0000 (UTC)
commit 44ee791fdb33a1acd4134d32f262e42cb78de652
Author: Iain Lane <iain orangesquash org uk>
Date: Wed Apr 13 14:44:15 2016 +0100
trivial: Add provenance and is_free in gs_app_to_string
src/gs-app.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index d3b58e8..0187b20 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -254,6 +254,7 @@ gs_app_to_string (GsApp *app)
gs_app_kv_lpad (str, "summary", app->summary);
if (app->description != NULL)
gs_app_kv_lpad (str, "description", app->description);
+ gs_app_kv_lpad (str, "provenance", gs_app_has_quirk (app, AS_APP_QUIRK_PROVENANCE) ? "yes" : "no");
for (i = 0; i < app->screenshots->len; i++) {
g_autofree gchar *key = NULL;
ss = g_ptr_array_index (app->screenshots, i);
@@ -287,6 +288,7 @@ gs_app_to_string (GsApp *app)
gs_app_kv_lpad (str, "url{homepage}", tmp);
if (app->license != NULL)
gs_app_kv_lpad (str, "license", app->license);
+ gs_app_kv_lpad (str, "open source", gs_app_get_license_is_free (app) ? "yes" : "no");
if (app->management_plugin != NULL)
gs_app_kv_lpad (str, "management-plugin", app->management_plugin);
if (app->summary_missing != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]