[gnome-software] Use the full application ID when deduplicating



commit c2becf1e01cafbf836f9cf0657e448d14abcc3c0
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jun 26 14:58:31 2014 +0100

    Use the full application ID when deduplicating
    
    We don't want to deduplicate 'org.gnome.Software' and 'org.gnome.Web' because
    of the ID truncation in as_app_set_id()

 src/gs-plugin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin.c b/src/gs-plugin.c
index 53ad8c6..eca115b 100644
--- a/src/gs-plugin.c
+++ b/src/gs-plugin.c
@@ -210,7 +210,7 @@ gs_plugin_list_filter_duplicates (GList **list)
        hash = g_hash_table_new (g_str_hash, g_str_equal);
        for (l = *list; l != NULL; l = l->next) {
                app = GS_APP (l->data);
-               id = gs_app_get_id (app);
+               id = gs_app_get_id_full (app);
                if (id == NULL) {
                        gs_plugin_add_app (&new, app);
                        continue;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]