[gnome-software/wip/rancell/snap-auth-3-20: 14/57] 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/snap-auth-3-20: 14/57] trivial: Add provenance and is_free in gs_app_to_string
- Date: Thu, 14 Dec 2017 00:43:51 +0000 (UTC)
commit 572d88add015d55bab2f79b22a45da0a5687c45e
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]