[gnome-software/wip/hughsie/unique-id-hash] Use the unique ID when adding flatpak runtimes



commit 1c48154bf7d6e8611c1bc9e7a3cbfadb95a99817
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]