[gnome-builder/wip/chergert/flatpak-repo: 6/11] repo: update remote after adding it




commit 21b88e6618b6dd4577cd8be0f055716a4f6a85a9
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 24 14:13:55 2021 -0700

    repo: update remote after adding it
    
    We need this so we can resolve remotes afterwards, such as from
    flathub-beta for beta runtimes.

 src/plugins/flatpak/daemon/ipc-flatpak-repo.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/plugins/flatpak/daemon/ipc-flatpak-repo.c b/src/plugins/flatpak/daemon/ipc-flatpak-repo.c
index 92ac1712b..affe275fd 100644
--- a/src/plugins/flatpak/daemon/ipc-flatpak-repo.c
+++ b/src/plugins/flatpak/daemon/ipc-flatpak-repo.c
@@ -109,6 +109,11 @@ ipc_flatpak_repo_constructed (GObject *object)
                          remotes[i], error->message);
               g_clear_error (&error);
             }
+          else if (!flatpak_installation_update_remote_sync (self->installation, flatpak_remote_get_name 
(remote), NULL, &error))
+            {
+              g_warning ("Failed to update remote %s: %s", remotes[i], error->message);
+              g_clear_error (&error);
+            }
         }
     }
 


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