[gnome-software/wip/hughsie/unique-id-hash: 5/6] Use the unique ID when adding flatpak runtimes
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/unique-id-hash: 5/6] Use the unique ID when adding flatpak runtimes
- Date: Thu, 25 Aug 2016 18:27:19 +0000 (UTC)
commit 5197100a47bbcfe9c05a8e6c76b49908371da299
Author: Richard Hughes <richard hughsie com>
Date: Thu Aug 25 19:06:33 2016 +0100
Use the unique ID when adding flatpak runtimes
We are already using the unique_id when looking this up, so it would appear
that we've never been deduplicating runtimes...
src/plugins/gs-appstream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index e139a51..da61b48 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -286,7 +286,7 @@ gs_appstream_create_runtime (GsPlugin *plugin,
return g_object_ref (app_cache);
/* save in the cache */
- gs_plugin_cache_add (plugin, id, app);
+ gs_plugin_cache_add (plugin, gs_app_get_unique_id (app), app);
return g_steal_pointer (&app);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]