[gnome-software] trivial: Always add the wildcard for the alternate application ID
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Always add the wildcard for the alternate application ID
- Date: Thu, 27 Sep 2018 15:46:24 +0000 (UTC)
commit c7707b18e1a17169d57da1aec392ae3d40c73702
Author: Richard Hughes <richard hughsie com>
Date: Thu Sep 27 16:17:19 2018 +0100
trivial: Always add the wildcard for the alternate application ID
lib/gs-plugin-loader.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 695b9bb7..825f4add 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -3574,6 +3574,13 @@ gs_plugin_loader_job_process_async (GsPluginLoader *plugin_loader,
GsApp *app = gs_plugin_job_get_app (plugin_job);
GsAppList *list = gs_plugin_job_get_list (plugin_job);
gs_app_list_add (list, app);
+
+ /* also add the wildcard match */
+ if (!gs_app_has_quirk (app, AS_APP_QUIRK_MATCH_ANY_PREFIX)) {
+ g_autoptr(GsApp) app2 = gs_app_new (gs_app_get_id (app));
+ gs_app_add_quirk (app2, AS_APP_QUIRK_MATCH_ANY_PREFIX);
+ gs_app_list_add (list, app2);
+ }
}
/* check required args */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]