[gnome-software/wip/mcrha/gs-plugin-appstream-refine] gs-plugin-appstream: Correct gs_plugin_refine()



commit 13c6cf49990ada9e03a3494ba55187b042aa165b
Author: Milan Crha <mcrha redhat com>
Date:   Wed May 19 15:34:14 2021 +0200

    gs-plugin-appstream: Correct gs_plugin_refine()
    
    This is a regression from commit 15d39630b, the 'for' cycle should not return
    from the function when it reaches an application the plugin cannot handle,
    it should just continue with the next application in the list.

 plugins/core/gs-plugin-appstream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index 953b65290..e353fa45e 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -908,7 +908,7 @@ gs_plugin_refine (GsPlugin *plugin,
                /* not us */
                if (gs_app_get_bundle_kind (app) != AS_BUNDLE_KIND_PACKAGE &&
                    gs_app_get_bundle_kind (app) != AS_BUNDLE_KIND_UNKNOWN)
-                       return TRUE;
+                       continue;
 
                /* find by ID then fall back to package name */
                if (!gs_plugin_refine_from_id (plugin, app, flags, &found, error))


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