[gnome-software/wip/hughsie/vnd.flatpak.ref] trivial: Add a sanity check in the GsAppList duplicate check
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/vnd.flatpak.ref] trivial: Add a sanity check in the GsAppList duplicate check
- Date: Fri, 16 Sep 2016 09:02:42 +0000 (UTC)
commit 70a350506c8fd92c65ddedfa41edf88119a071bb
Author: Richard Hughes <richard hughsie com>
Date: Fri Sep 16 09:59:28 2016 +0100
trivial: Add a sanity check in the GsAppList duplicate check
This shouldn't be triggering, but is. Futher investigation required...
src/gs-app-list.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app-list.c b/src/gs-app-list.c
index 72693ed..f75c969 100644
--- a/src/gs-app-list.c
+++ b/src/gs-app-list.c
@@ -87,6 +87,13 @@ gs_app_list_check_for_duplicate (GsAppList *list, GsApp *app)
return TRUE;
}
+ /* do a sanity check */
+ if (!as_utils_unique_id_equal (id, id_old)) {
+ g_debug ("unique-id non-equal %s as %s but hash matched!",
+ id, id_old);
+ return TRUE;
+ }
+
/* already exists */
g_debug ("not adding duplicate %s as %s already exists", id, id_old);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]