[gnome-software/wip/william/cherry-pick: 1/9] trivial: Add provenance and is_free in gs_app_to_string



commit 18aa9149fc543ff78a64d6b627393f7938f29416
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 a8a97e5..b2ee1c1 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -251,6 +251,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);
@@ -284,6 +285,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]