[gnome-software/wip/rancell/ubuntu-3-20-rebase: 7/52] 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-rebase: 7/52] trivial: Add provenance and is_free in gs_app_to_string
- Date: Sat, 17 Jun 2017 08:57:05 +0000 (UTC)
commit d7f38bab48fb36f4b0e7bcf4935f450ada43b789
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 | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 0b0af6e..dc9de70 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -228,6 +228,9 @@ gs_app_to_string (GsApp *app)
g_string_append_printf (str, "\tsummary:\t%s\n", app->summary);
if (app->description != NULL)
g_string_append_printf (str, "\tdescription:\t%s\n", app->description);
+ g_string_append_printf (str, "\tprovenance:\t%s\n",
+ gs_app_has_quirk (app,
+ AS_APP_QUIRK_PROVENANCE) ? "yes" : "no");
for (i = 0; i < app->screenshots->len; i++) {
ss = g_ptr_array_index (app->screenshots, i);
tmp = as_screenshot_get_caption (ss, NULL);
@@ -255,6 +258,8 @@ gs_app_to_string (GsApp *app)
g_string_append_printf (str, "\turl{homepage}:\t%s\n", tmp);
if (app->licence != NULL)
g_string_append_printf (str, "\tlicence:\t%s\n", app->licence);
+ g_string_append_printf (str, "\topen source:\t%s\n",
+ gs_app_get_license_is_free (app) ? "yes" : "no");
if (app->management_plugin != NULL)
g_string_append_printf (str, "\tmanagement-plugin:\t%s\n", app->management_plugin);
if (app->summary_missing != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]