[gnome-software] It's never an error to have duplicate AppStream items



commit 39a4f9c1822bdc87b93f0410d7d211af71403c4c
Author: Richard Hughes <richard hughsie com>
Date:   Fri Sep 6 16:07:50 2013 +0100

    It's never an error to have duplicate AppStream items

 src/plugins/appstream-cache.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/appstream-cache.c b/src/plugins/appstream-cache.c
index 04aec7b..d77a16d 100644
--- a/src/plugins/appstream-cache.c
+++ b/src/plugins/appstream-cache.c
@@ -292,12 +292,8 @@ appstream_cache_end_element_cb (GMarkupParseContext *context,
                id = appstream_app_get_id (helper->item_temp);
                item = g_hash_table_lookup (priv->hash_id, id);
                if (item != NULL) {
-//                     g_set_error (error,
-//                                  APPSTREAM_CACHE_ERROR,
-//                                  APPSTREAM_CACHE_ERROR_FAILED,
-//                                  "duplicate AppStream entry: %s", id);
-                       appstream_app_free (helper->item_temp);
                        g_warning ("duplicate AppStream entry: %s", id);
+                       appstream_app_free (helper->item_temp);
                } else {
                        g_ptr_array_add (priv->array, helper->item_temp);
                        g_hash_table_insert (priv->hash_id,


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