[gnome-software] trivial: Do not remove the AS_APP_QUIRK_MATCH_ANY_PREFIX in the plugin loader



commit 8bddd2efa003da474ad886fd11000fb7bf48d09d
Author: Richard Hughes <richard hughsie com>
Date:   Fri Jun 10 17:25:46 2016 +0100

    trivial: Do not remove the AS_APP_QUIRK_MATCH_ANY_PREFIX in the plugin loader
    
    If we remove it and we later refresh the app tiles the results fail to match
    anything that has a prefix. To reproduce you can do:
    
        $ flatpak --user remote-delete apps
        $ ./gnome-software
        $ flatpak remote-add apps https://sdk.gnome.org/nightly/repo-apps/ --user
        $ ./gnome-software

 src/gs-plugin-loader.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 3768455..cd41233 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -474,9 +474,6 @@ gs_plugin_loader_run_refine (GsPluginLoader *plugin_loader,
                        continue;
                if (gs_app_get_management_plugin (app) != NULL)
                        continue;
-
-               /* this doesn't make sense outside the plugin loader */
-               gs_app_remove_quirk (app, AS_APP_QUIRK_MATCH_ANY_PREFIX);
                has_match_any_prefix = TRUE;
        }
        if (has_match_any_prefix) {


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