[gnome-software/gnome-3-34] gs-appstream: Fix loading of icons from AppStream YAML



commit 03308e46d36d8d8dabba280911de83952ebb622e
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue Jan 21 16:03:36 2020 +1300

    gs-appstream: Fix loading of icons from AppStream YAML
    
    Only the XML directories were being supported.

 plugins/core/gs-appstream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/core/gs-appstream.c b/plugins/core/gs-appstream.c
index 40e6f2b2..2d961600 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -121,7 +121,7 @@ gs_appstream_build_icon_prefix (XbNode *component)
        /* check format */
        path = g_strsplit (tmp, "/", -1);
        npath = g_strv_length (path);
-       if (npath < 3 || g_strcmp0 (path[npath-2], "xmls") != 0)
+       if (npath < 3 || !(g_strcmp0 (path[npath-2], "xmls") == 0 || g_strcmp0 (path[npath-2], "yaml") == 0))
                return NULL;
 
        /* fix the new path */


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