[gnome-software] generic updates: Don't put wildcard apps in the os update object
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] generic updates: Don't put wildcard apps in the os update object
- Date: Wed, 21 Mar 2018 11:18:11 +0000 (UTC)
commit c5cc2dc34fab191e9b40097fd1e53a84f3a47177
Author: Kalev Lember <klember redhat com>
Date: Wed Mar 21 09:48:22 2018 +0100
generic updates: Don't put wildcard apps in the os update object
Wildcard apps are filtered from the updates list after refine() and we
may end up with an empty OsUpdate object if we add wildcard apps to it
and there are no other updates.
Fixes: https://gitlab.gnome.org/GNOME/gnome-software/issues/332
https://bugzilla.redhat.com/show_bug.cgi?id=1558754
plugins/core/gs-plugin-generic-updates.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/plugins/core/gs-plugin-generic-updates.c b/plugins/core/gs-plugin-generic-updates.c
index 2fc805b7..733983a2 100644
--- a/plugins/core/gs-plugin-generic-updates.c
+++ b/plugins/core/gs-plugin-generic-updates.c
@@ -96,6 +96,8 @@ gs_plugin_refine (GsPlugin *plugin,
/* do we have any packages left that are not apps? */
for (guint i = 0; i < gs_app_list_length (list); i++) {
GsApp *app_tmp = gs_app_list_index (list, i);
+ if (gs_app_has_quirk (app_tmp, AS_APP_QUIRK_MATCH_ANY_PREFIX))
+ continue;
if (gs_plugin_generic_updates_merge_os_update (app_tmp))
gs_app_list_add (os_updates, app_tmp);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]