[gnome-software] trivial: Use the unique ID when invalidating removed AppStream applications



commit 52874f8e367e4d95918854417489aa81de633ca2
Author: Richard Hughes <richard hughsie com>
Date:   Mon Oct 31 11:23:21 2016 +0000

    trivial: Use the unique ID when invalidating removed AppStream applications

 src/plugins/gs-plugin-appstream.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 745a6d9..d365d37 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -82,7 +82,7 @@ gs_plugin_detect_reload_apps (GsPlugin *plugin)
                if (item == NULL) {
                        item = g_hash_table_lookup (app_hash, key);
                        app = gs_plugin_cache_lookup (plugin,
-                                                     as_app_get_id (item));
+                                                     as_app_get_unique_id (item));
                        if (app != NULL)
                                g_debug ("added GsApp %s", gs_app_get_id (app));
                        cnt++;
@@ -97,7 +97,7 @@ gs_plugin_detect_reload_apps (GsPlugin *plugin)
                if (item == NULL) {
                        item = g_hash_table_lookup (priv->app_hash_old, key);
                        app = gs_plugin_cache_lookup (plugin,
-                                                     as_app_get_id (item));
+                                                     as_app_get_unique_id (item));
                        if (app != NULL)
                                g_debug ("removed GsApp %s", gs_app_get_id (app));
                        cnt++;


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