[gnome-software] Clear all existing applications if the store was invalidated
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Clear all existing applications if the store was invalidated
- Date: Fri, 10 Oct 2014 16:23:25 +0000 (UTC)
commit 9230fa1acdfc113f5006a3b3ff56ac941e769f92
Author: Richard Hughes <richard hughsie com>
Date: Fri Oct 10 17:17:49 2014 +0100
Clear all existing applications if the store was invalidated
src/plugins/gs-plugin-appstream.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 90e87cd..911ace3 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -134,6 +134,9 @@ gs_plugin_startup (GsPlugin *plugin, GError **error)
guint i;
#endif
+ /* clear all existing applications if the store was invalidated */
+ as_store_remove_all (plugin->priv->store);
+
/* get the locale without the UTF-8 suffix */
plugin->priv->locale = g_strdup (setlocale (LC_MESSAGES, NULL));
tmp = g_strstr_len (plugin->priv->locale, -1, ".UTF-8");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]