[gnome-software] trivial: Manually drop the cache when we detect that flatpak has changed
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Manually drop the cache when we detect that flatpak has changed
- Date: Fri, 10 Jun 2016 16:54:12 +0000 (UTC)
commit 33b73dc447e1802e4533e982575af6ed598bcb1a
Author: Richard Hughes <richard hughsie com>
Date: Fri Jun 10 17:53:20 2016 +0100
trivial: Manually drop the cache when we detect that flatpak has changed
src/plugins/gs-flatpak.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 5129724..6d8ce76 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -59,6 +59,12 @@ gs_plugin_flatpak_changed_cb (GFileMonitor *monitor,
g_autoptr(GError) error = NULL;
g_autoptr(GError) error_md = NULL;
+ /* manually drop the cache */
+ if (!flatpak_installation_drop_caches (self->installation,
+ cancellable,
+ error))
+ return FALSE;
+
/* if this is a new remote, get the AppStream data */
if (!gs_flatpak_refresh_appstream (self, G_MAXUINT, NULL, &error_md)) {
g_warning ("failed to get initial available data: %s",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]