[gnome-software] trivial: Show all the unique-id's in gs_app_to_string()



commit a9224fb713f18025fd9c25905d4e20207104b71b
Author: Richard Hughes <richard hughsie com>
Date:   Tue Sep 12 16:51:55 2017 +0100

    trivial: Show all the unique-id's in gs_app_to_string()

 lib/gs-app.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index 3fbdac0..3f95d54 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -556,8 +556,10 @@ gs_app_to_string_append (GsApp *app, GString *str)
                GsApp *app_tmp = g_ptr_array_index (priv->related, i);
                gs_app_kv_lpad (str, "related", gs_app_get_unique_id (app_tmp));
        }
-       if (priv->history->len > 0)
-               gs_app_kv_printf (str, "history", "%u", priv->history->len);
+       for (i = 0; i < priv->history->len; i++) {
+               GsApp *app_tmp = g_ptr_array_index (priv->history, i);
+               gs_app_kv_lpad (str, "history", gs_app_get_unique_id (app_tmp));
+       }
        for (i = 0; i < priv->categories->len; i++) {
                tmp = g_ptr_array_index (priv->categories, i);
                gs_app_kv_lpad (str, "category", tmp);


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