[gnome-software] flatpak: Drop all local caches when refreshing remotes



commit d9b1fcc0bea6ad373bdda4b79b243afca3cb5f5c
Author: Richard Hughes <richard hughsie com>
Date:   Fri Oct 21 13:54:18 2016 +0100

    flatpak: Drop all local caches when refreshing remotes

 src/plugins/gs-flatpak.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 6320e43..4517088 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -980,6 +980,14 @@ gs_flatpak_refresh (GsFlatpak *self,
        /* give all the repos a second chance */
        g_hash_table_remove_all (self->broken_remotes);
 
+       /* manually drop the cache */
+       if (!flatpak_installation_drop_caches (self->installation,
+                                              cancellable,
+                                              error)) {
+               gs_plugin_flatpak_error_convert (error);
+               return FALSE;
+       }
+
        /* update AppStream metadata */
        if (flags & GS_PLUGIN_REFRESH_FLAGS_METADATA) {
                if (!gs_flatpak_refresh_appstream (self, cache_age, flags,


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