[gnome-software: 7/20] snap: Fix listing apps to use sections correctly




commit e919aaae82f428c40b477474dbfe4c3a3dfb0420
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri Jul 1 16:36:40 2022 +0100

    snap: Fix listing apps to use sections correctly
    
    This was a bug introduced in commit 12a4fbe239, which went to all the
    trouble of calculating a list of sections to query snapd with, but then
    always just queried `featured`.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 plugins/snap/gs-plugin-snap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 8f419f853..a36dbb4b0 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -683,7 +683,7 @@ gs_plugin_snap_list_apps_async (GsPlugin              *plugin,
 
        for (gsize i = 0; sections != NULL && sections[i] != NULL; i++) {
                data->n_pending_ops++;
-               snapd_client_find_section_async (client, SNAPD_FIND_FLAGS_SCOPE_WIDE, "featured", NULL,
+               snapd_client_find_section_async (client, SNAPD_FIND_FLAGS_SCOPE_WIDE, sections[i], NULL,
                                                 cancellable, list_apps_cb, g_object_ref (task));
        }
 


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