[gnome-software] trivial: Ensure hardcoded popular entries with MATCH_ANY_PREFIX



commit e77f0b6c400b1d4b4b4c6105baa02ef054a2174a
Author: Richard Hughes <richard hughsie com>
Date:   Mon May 23 16:03:50 2016 +0100

    trivial: Ensure hardcoded popular entries with MATCH_ANY_PREFIX

 src/plugins/gs-plugin-hardcoded-popular.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-hardcoded-popular.c b/src/plugins/gs-plugin-hardcoded-popular.c
index 591abe6..f5577cb 100644
--- a/src/plugins/gs-plugin-hardcoded-popular.c
+++ b/src/plugins/gs-plugin-hardcoded-popular.c
@@ -54,9 +54,11 @@ gs_plugin_add_popular (GsPlugin *plugin,
                return TRUE;
 
        /* just add all */
+       g_debug ("using hardcoded as only %i apps", gs_app_list_length (list));
        for (i = 0; apps[i] != NULL; i++) {
                g_autoptr(GsApp) app = NULL;
                app = gs_app_new (apps[i]);
+               gs_app_add_quirk (app, AS_APP_QUIRK_MATCH_ANY_PREFIX);
                gs_app_list_add (list, app);
        }
        return TRUE;


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