[gnome-builder] flatpak: apply max depth when searching for manifests



commit 408008a89f189373d56b369510236519747fe329
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jun 25 20:28:01 2018 -0700

    flatpak: apply max depth when searching for manifests
    
    When switching to the helper code, we stopped applying the max depth for
    the manifest. This fixes that using the new find_with_depth API.

 src/plugins/flatpak/gbp-flatpak-configuration-provider.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-configuration-provider.c 
b/src/plugins/flatpak/gbp-flatpak-configuration-provider.c
index c83a6baa8..90945ec89 100644
--- a/src/plugins/flatpak/gbp-flatpak-configuration-provider.c
+++ b/src/plugins/flatpak/gbp-flatpak-configuration-provider.c
@@ -481,11 +481,12 @@ gbp_flatpak_configuration_provider_load_async (IdeConfigurationProvider *provide
                            self,
                            G_CONNECT_SWAPPED);
 
-  ide_g_file_find_async (workdir,
-                         "*.json",
-                         cancellable,
-                         load_find_files_cb,
-                         g_steal_pointer (&task));
+  ide_g_file_find_with_depth_async (workdir,
+                                    "*.json",
+                                    DISCOVERY_MAX_DEPTH,
+                                    cancellable,
+                                    load_find_files_cb,
+                                    g_steal_pointer (&task));
 
   IDE_EXIT;
 }


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