[gnome-software/wip/kalev/gnome-3-22-prep: 39/52] flatpak: Drop all local caches when refreshing remotes



commit e25ff7accdc35f76b484779f9a6619ea6cb4ff1e
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 3277e31..f8ff9eb 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -902,6 +902,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]