[gnome-software/wip/rancell/apt] Reload the appstream plugin after updating /var/lib/app-info
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/apt] Reload the appstream plugin after updating /var/lib/app-info
- Date: Fri, 18 Mar 2016 14:38:54 +0000 (UTC)
commit b548fd476672626fa828b4359366235fe3060e1e
Author: William Hua <william hua canonical com>
Date: Fri Mar 18 10:37:58 2016 -0400
Reload the appstream plugin after updating /var/lib/app-info
src/plugins/gs-plugin-appstream.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index ea6d8c2..747d1c3 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -163,6 +163,9 @@ needs_refresh (GsPlugin *plugin)
return dir == NULL || g_dir_read_name (dir) == NULL;
}
+static gboolean gs_plugin_appstream_startup (GsPlugin *plugin,
+ GError **error);
+
static void
refreshed_cb (GObject *source_object,
GAsyncResult *res,
@@ -171,8 +174,11 @@ refreshed_cb (GObject *source_object,
GsPlugin *plugin = user_data;
GsPluginLoader *loader = GS_PLUGIN_LOADER (source_object);
- if (gs_plugin_loader_refresh_finish (loader, res, NULL))
+ if (gs_plugin_loader_refresh_finish (loader, res, NULL)) {
+ plugin->priv->done_init = FALSE;
+ gs_plugin_appstream_startup (plugin, NULL);
gs_plugin_updates_changed (plugin);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]