[gnome-software/gnome-3-26] fwupd: Do not use deprecated API
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-26] fwupd: Do not use deprecated API
- Date: Thu, 9 Nov 2017 14:36:07 +0000 (UTC)
commit daa01c1e6c3de2154dd542309249a3cb4e975611
Author: Richard Hughes <richard hughsie com>
Date: Wed Sep 13 15:24:56 2017 +0100
fwupd: Do not use deprecated API
plugins/fwupd/gs-plugin-fwupd.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/plugins/fwupd/gs-plugin-fwupd.c b/plugins/fwupd/gs-plugin-fwupd.c
index 6d6fe1f..13e0667 100644
--- a/plugins/fwupd/gs-plugin-fwupd.c
+++ b/plugins/fwupd/gs-plugin-fwupd.c
@@ -352,11 +352,16 @@ gs_plugin_fwupd_new_app_from_results (GsPlugin *plugin, FwupdResult *res)
FwupdRelease *rel = fwupd_result_get_release (res);
GsApp *app;
GPtrArray *guids;
- const gchar *id;
+ g_autofree gchar *id = NULL;
g_autoptr(AsIcon) icon = NULL;
/* get from cache */
- id = fwupd_result_get_unique_id (res);
+ id = as_utils_unique_id_build (AS_APP_SCOPE_SYSTEM,
+ AS_BUNDLE_KIND_UNKNOWN,
+ NULL, /* origin */
+ AS_APP_KIND_FIRMWARE,
+ fwupd_release_get_appstream_id (rel),
+ NULL);
app = gs_plugin_cache_lookup (plugin, id);
if (app == NULL) {
app = gs_plugin_app_new (plugin, id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]