[gnome-software] trivial: Show more useful debugging when reparenting generic updates



commit 05b21d1f52239232ea18a18959238139b1370f9d
Author: Richard Hughes <richard hughsie com>
Date:   Thu Dec 15 11:30:11 2016 +0000

    trivial: Show more useful debugging when reparenting generic updates

 src/plugins/gs-plugin-generic-updates.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-generic-updates.c b/src/plugins/gs-plugin-generic-updates.c
index 6659263..2fc805b 100644
--- a/src/plugins/gs-plugin-generic-updates.c
+++ b/src/plugins/gs-plugin-generic-updates.c
@@ -106,9 +106,11 @@ gs_plugin_refine (GsPlugin *plugin,
        app = gs_plugin_generic_updates_get_os_update (plugin);
        for (guint i = 0; i < gs_app_list_length (os_updates); i++) {
                GsApp *app_tmp = gs_app_list_index (os_updates, i);
+               const gchar *id = gs_app_get_unique_id (app_tmp);
+               if (id == NULL)
+                       id = gs_app_get_source_default (app_tmp);
                g_debug ("moving %s to parent %s",
-                        gs_app_get_unique_id (app_tmp),
-                        gs_app_get_unique_id (app));
+                        id, gs_app_get_unique_id (app));
                gs_app_add_related (app, app_tmp);
                gs_app_list_remove (list, app_tmp);
        }


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