[gnome-software/wip/rancell/ubuntu-3-20-4: 6/50] trivial: Add provenance and is_free in gs_app_to_string
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/ubuntu-3-20-4: 6/50] trivial: Add provenance and is_free in gs_app_to_string
- Date: Sun, 18 Jun 2017 01:11:13 +0000 (UTC)
commit e33ba9732975519bfc83cdbd1cc5733a9e664cdf
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 | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index de95e83..3d791a0 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -254,6 +254,8 @@ 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 +289,8 @@ 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]