[gnome-software/backport-1331-flatpak-data-structures: 2/2] flatpak: Add missing call to gs_flatpak_rescan_appstream_store()




commit 0bac9f930e2274e2ad0f3a0baedb2a30301aff8e
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.
    
    (cherry picked from commit 6c67cc303c7edfd24e674c63fe0c45b490d5aed0)

 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 73ce88aed..1bb3b65a9 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -1343,8 +1343,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]