[gnome-software] trivial: Print the keywords when dumping the app



commit cc4d6f989175201a0f5d9ee4e37cd7989b4b82e9
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 24 17:44:58 2016 +0000

    trivial: Print the keywords when dumping the app

 src/gs-app.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 420c5fe..77c2e89 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -320,6 +320,12 @@ gs_app_to_string (GsApp *app)
                tmp = g_ptr_array_index (app->categories, i);
                g_string_append_printf (str, "\tcategory:\t%s\n", tmp);
        }
+       if (app->keywords != NULL) {
+               for (i = 0; i < app->keywords->len; i++) {
+                       tmp = g_ptr_array_index (app->keywords, i);
+                       g_string_append_printf (str, "\tkeyword:\t%s\n", tmp);
+               }
+       }
        keys = g_hash_table_get_keys (app->metadata);
        for (l = keys; l != NULL; l = l->next) {
                tmp = g_hash_table_lookup (app->metadata, l->data);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]