[gnome-software/wip/hughsie/flatpak] Manually drop the cache when getting updates
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/flatpak] Manually drop the cache when getting updates
- Date: Mon, 16 May 2016 08:29:47 +0000 (UTC)
commit e4db5efa67d38ca4ab893b472d159bba6de60475
Author: Richard Hughes <richard hughsie com>
Date: Mon May 16 09:29:39 2016 +0100
Manually drop the cache when getting updates
src/plugins/gs-plugin-flatpak.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-flatpak.c b/src/plugins/gs-plugin-flatpak.c
index b0c46bc..04d01d3 100644
--- a/src/plugins/gs-plugin-flatpak.c
+++ b/src/plugins/gs-plugin-flatpak.c
@@ -555,6 +555,13 @@ gs_plugin_add_updates (GsPlugin *plugin,
guint i;
g_autoptr(GPtrArray) xrefs = NULL;
+ /* manually drop the cache */
+ if (!flatpak_installation_drop_caches (priv->installation,
+ cancellable,
+ error)) {
+ return FALSE;
+ }
+
/* get all the installed apps (no network I/O) */
xrefs = flatpak_installation_list_installed_refs (priv->installation,
cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]