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



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

    flatpak: Drop all local caches when refreshing remotes
    
    (cherry picked from commit d9b1fcc0bea6ad373bdda4b79b243afca3cb5f5c)

 src/plugins/gs-flatpak.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index f4eea24..fe48348 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -906,6 +906,13 @@ 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)) {
+               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]