[gnome-builder/gnome-builder-41] flatpak: log runtimes before querying peer



commit d331c671cbe3c708ec79d5371f3dbb396d467767
Author: Christian Hergert <chergert redhat com>
Date:   Thu Nov 18 17:48:38 2021 -0800

    flatpak: log runtimes before querying peer

 src/plugins/flatpak/gbp-flatpak-runtime-provider.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c 
b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
index 232e39353..9e607f645 100644
--- a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
+++ b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
@@ -351,6 +351,7 @@ gbp_flatpak_runtime_provider_bootstrap (IdeTask      *task,
   g_autoptr(IpcFlatpakTransfer) transfer = NULL;
   g_autoptr(IdeNotification) notif = NULL;
   Bootstrap *state = task_data;
+  g_autoptr(GString) debug_install = NULL;
 
   IDE_ENTRY;
 
@@ -371,6 +372,15 @@ gbp_flatpak_runtime_provider_bootstrap (IdeTask      *task,
       IDE_GOTO (failure);
     }
 
+  debug_install = g_string_new (NULL);
+  for (guint i = 0; i < state->to_install->len; i++)
+    g_string_append_printf (debug_install,
+                            "%s, ",
+                            (char *)g_ptr_array_index(state->to_install, i));
+  if (debug_install->len > 2)
+    g_string_truncate (debug_install, debug_install->len-2);
+  g_debug ("Needed flatpak runtimes: %s", debug_install->str);
+
   /* Filter out anything we can't find or is already installed */
   for (guint i = state->to_install->len; i > 0; i--)
     {


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