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



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]