[gnome-software/wip/hughsie/wildcard-legacy: 10/11] trivial: Correctly add the FEATURED_RECOMMENDED kudo if set



commit 2371cf82705f530f05490d0d4d4976c0ca11fa7b
Author: Richard Hughes <richard hughsie com>
Date:   Sun Jul 14 18:43:27 2019 +0100

    trivial: Correctly add the FEATURED_RECOMMENDED kudo if set
    
    The name is a desktop category, and so is sentence case like 'Games'.

 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 9a3d66be..9a233d98 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -924,7 +924,7 @@ gs_appstream_refine_app (GsPlugin *plugin,
                /* add a kudo to featured and popular apps */
                if (xb_node_query_text (component, "kudos/kudo[text()='GnomeSoftware::popular']", NULL) != 
NULL)
                        gs_app_add_kudo (app, GS_APP_KUDO_FEATURED_RECOMMENDED);
-               if (xb_node_query_text (component, "categories/category[text()='featured']", NULL) != NULL)
+               if (xb_node_query_text (component, "categories/category[text()='Featured']", NULL) != NULL)
                        gs_app_add_kudo (app, GS_APP_KUDO_FEATURED_RECOMMENDED);
 
                /* add new-style kudos */


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