[gnome-builder] flatpak: Refresh installations after adding remotes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: Refresh installations after adding remotes
- Date: Sat, 18 Mar 2017 22:15:48 +0000 (UTC)
commit 3e0ea1ec58e53e855c6dd2acae323c513e79ffc7
Author: Matthew Leeds <mleeds redhat com>
Date: Sat Mar 18 15:40:38 2017 -0500
flatpak: Refresh installations after adding remotes
This commit makes sure flatpak_installation_list_remotes() returns remotes
that were added after the installation object was created.
https://bugzilla.gnome.org/show_bug.cgi?id=780249
plugins/flatpak/gbp-flatpak-application-addin.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-application-addin.c b/plugins/flatpak/gbp-flatpak-application-addin.c
index 837f25f..5312c82 100644
--- a/plugins/flatpak/gbp-flatpak-application-addin.c
+++ b/plugins/flatpak/gbp-flatpak-application-addin.c
@@ -519,6 +519,9 @@ gbp_flatpak_application_addin_install_runtime_worker (GTask *task,
g_assert (FLATPAK_IS_INSTALLATION (installation));
+ /* Refresh in case a new remote was added */
+ flatpak_installation_drop_caches (installation, cancellable, NULL);
+
remotes = flatpak_installation_list_remotes (installation, cancellable, NULL);
if (remotes == NULL)
continue;
@@ -866,6 +869,9 @@ gbp_flatpak_application_addin_locate_sdk_worker (GTask *task,
g_assert (FLATPAK_IS_INSTALLATION (installation));
+ /* Refresh in case a new remote was added */
+ flatpak_installation_drop_caches (installation, cancellable, NULL);
+
remotes = flatpak_installation_list_remotes (installation, cancellable, NULL);
if (remotes == NULL)
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]