[gnome-software: 1/2] flatpak: Ensure silo is valid when calling add_category_apps()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] flatpak: Ensure silo is valid when calling add_category_apps()
- Date: Wed, 24 Mar 2021 16:09:54 +0000 (UTC)
commit b0df749628645c8f581651b403e00ba7e4101740
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Mar 24 16:04:12 2021 +0000
flatpak: Ensure silo is valid when calling add_category_apps()
Every other vfunc implementation in `gs-flatpak.c` does the same. This
should hopefully prevent the critical warnings seen in #1129.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Fixes: #1129
plugins/flatpak/gs-flatpak.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index fbbd0e33b..1ae7943df 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -3474,6 +3474,10 @@ gs_flatpak_add_category_apps (GsFlatpak *self,
GError **error)
{
g_autoptr(GRWLockReaderLocker) locker = NULL;
+
+ if (!gs_flatpak_rescan_appstream_store (self, cancellable, error))
+ return FALSE;
+
locker = g_rw_lock_reader_locker_new (&self->silo_lock);
return gs_appstream_add_category_apps (self->plugin, self->silo,
category, list,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]