[gnome-software/mwleeds/1317-follow-ups: 2/2] flatpak: Add missing call to gs_flatpak_rescan_appstream_store()




commit 6c67cc303c7edfd24e674c63fe0c45b490d5aed0
Author: Phaedrus Leeds <mwleeds protonmail com>
Date:   Tue Apr 26 11:46:13 2022 -0700

    flatpak: Add missing call to gs_flatpak_rescan_appstream_store()
    
    This matches what we do on the other code path where
    gs_flatpak_rescan_appstream_store() fails. It makes sense to assume the
    internal data structures need to be re-generated when this function
    fails.

 plugins/flatpak/gs-flatpak.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 73934f5a0..df322c708 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -1324,8 +1324,10 @@ gs_flatpak_refresh_appstream (GsFlatpak     *self,
        }
 
        /* ensure the AppStream silo is up to date */
-       if (!gs_flatpak_rescan_appstream_store (self, interactive, cancellable, error))
+       if (!gs_flatpak_rescan_appstream_store (self, interactive, cancellable, error)) {
+               gs_flatpak_internal_data_changed (self);
                return FALSE;
+       }
 
        return TRUE;
 }


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