[gnome-software/wip/kalev/gnome-3-22-prep: 12/52] trivial: Do not needlessly refine AppStream-created wildcards
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/kalev/gnome-3-22-prep: 12/52] trivial: Do not needlessly refine AppStream-created wildcards
- Date: Mon, 7 Nov 2016 09:45:47 +0000 (UTC)
commit 766d0801d8a7c8fe48ec32accd974fd8faac085f
Author: Richard Hughes <richard hughsie com>
Date: Tue Sep 20 12:15:32 2016 +0100
trivial: Do not needlessly refine AppStream-created wildcards
(cherry picked from commit 7f425515b3737860a03966cf8424addcd9bc7e84)
src/plugins/gs-plugin-appstream.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index a5fe0a8..86ec8b4 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -596,7 +596,7 @@ gs_plugin_add_popular (GsPlugin *plugin,
continue;
if (!as_app_has_kudo (item, "GnomeSoftware::popular"))
continue;
- app = gs_appstream_create_app (plugin, item);
+ app = gs_app_new (as_app_get_id (item));
gs_app_add_quirk (app, AS_APP_QUIRK_MATCH_ANY_PREFIX);
gs_app_list_add (list, app);
}
@@ -627,9 +627,7 @@ gs_plugin_add_featured (GsPlugin *plugin,
continue;
if (as_app_get_metadata_item (item, "GnomeSoftware::FeatureTile-css") == NULL)
continue;
- app = gs_appstream_create_app (plugin, item);
- if (!gs_appstream_refine_app (plugin, app, item, error))
- return FALSE;
+ app = gs_app_new (as_app_get_id (item));
gs_app_add_quirk (app, AS_APP_QUIRK_MATCH_ANY_PREFIX);
gs_app_list_add (list, app);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]