From 41057548b079835cab64853d8dc37d864e6714e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Thu, 22 Dec 2022 23:40:55 +0100 Subject: [PATCH] gs-appstream: Support new loading icons from "xml" location This is part of the standard, and icons in those directories should not actually be skipped. --- lib/gs-appstream.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/gs-appstream.c b/lib/gs-appstream.c index 3cb8bda08..93ea034d0 100644 --- a/lib/gs-appstream.c +++ b/lib/gs-appstream.c @@ -203,7 +203,10 @@ 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 || g_strcmp0 (path[npath-2], "yaml") == 0)) + if (npath < 3 || + !(g_strcmp0 (path[npath-2], "xmls") == 0 || + g_strcmp0 (path[npath-2], "yaml") == 0 || + g_strcmp0 (path[npath-2], "xml") == 0)) return NULL; /* fix the new path */ -- GitLab