[gnome-software/backport-1331-flatpak-data-structures: 1/2] flatpak: Remove duplicate call to ensure silo




commit c236de7ca20ca760b1c137b9fda79c64cae0b6fb
Author: Phaedrus Leeds <mwleeds protonmail com>
Date:   Tue Apr 26 11:43:24 2022 -0700

    flatpak: Remove duplicate call to ensure silo
    
    This is unneeded because there's a call to
    gs_flatpak_rescan_appstream_store() already at the end of
    gs_flatpak_refresh_appstream().
    
    (cherry picked from commit ac2482bf83897f39f2bc7954f761bb111fa8bc41)

 plugins/flatpak/gs-flatpak.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index c66aa681d..73ce88aed 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -2016,10 +2016,6 @@ gs_flatpak_refresh (GsFlatpak *self,
        if (!gs_flatpak_refresh_appstream (self, cache_age_secs, interactive, cancellable, error))
                return FALSE;
 
-       /* ensure valid */
-       if (!gs_flatpak_rescan_appstream_store (self, interactive, cancellable, error))
-               return FALSE;
-
        /* success */
        return TRUE;
 }


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