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




commit f94076ea0aab2dc2f0151dfc767ebf25a6f2bc4f
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]