[gnome-software] plugin loader: Don't let any MATCH_ANY_PREFIX apps escape the plugin loader
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] plugin loader: Don't let any MATCH_ANY_PREFIX apps escape the plugin loader
- Date: Mon, 5 Mar 2018 12:38:21 +0000 (UTC)
commit f484a7c120d9b1ea6bdf1b0f6586322357337c31
Author: Kalev Lember <klember redhat com>
Date: Mon Mar 5 13:12:25 2018 +0100
plugin loader: Don't let any MATCH_ANY_PREFIX apps escape the plugin loader
lib/gs-plugin-loader.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index bfbce076..55d8dde8 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -845,6 +845,12 @@ gs_plugin_loader_run_refine_filter (GsPluginLoaderHelper *helper,
return TRUE;
}
+static gboolean
+gs_plugin_loader_app_is_non_wildcard (GsApp *app, gpointer user_data)
+{
+ return !gs_app_has_quirk (app, AS_APP_QUIRK_MATCH_ANY_PREFIX);
+}
+
static gboolean
gs_plugin_loader_run_refine_internal (GsPluginLoaderHelper *helper,
GsAppList *list,
@@ -1013,6 +1019,8 @@ gs_plugin_loader_run_refine (GsPluginLoaderHelper *helper,
cancellable,
error))
goto out;
+ /* filter any MATCH_ANY_PREFIX apps left in the list */
+ gs_app_list_filter (list, gs_plugin_loader_app_is_non_wildcard, NULL);
}
/* remove any addons that have the same source as the parent app */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]