[gnome-builder] flatpak: Make install work without an Internet connection



commit 56f3a631604f102d516147a7e9a203636cd5269a
Author: Matthew Leeds <mleeds redhat com>
Date:   Mon Dec 12 14:10:32 2016 -0600

    flatpak: Make install work without an Internet connection
    
    Users should be able to build and run flatpak apps locally without an
    Internet connection, but this was being prevented because
    flatpak-install attempts to check remotes for dependencies. Another
    issue is that flatpak prompts the user before installing a needed runtime,
    but we're running it in a subprocess. In the future if flatpak gets a way
    to install runtimes without user interaction (like -y) we may want to rethink
    this and see if we can just use --no-pull when there's no Internet connection.

 plugins/flatpak/gbp-flatpak-runtime.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-runtime.c b/plugins/flatpak/gbp-flatpak-runtime.c
index ea62cda..f998d94 100644
--- a/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/plugins/flatpak/gbp-flatpak-runtime.c
@@ -660,6 +660,7 @@ gbp_flatpak_runtime_postinstall_worker (GTask        *task,
   ide_subprocess_launcher_push_argv (launcher4, "install");
   ide_subprocess_launcher_push_argv (launcher4, "--user");
   ide_subprocess_launcher_push_argv (launcher4, "--app");
+  ide_subprocess_launcher_push_argv (launcher4, "--no-deps");
   ide_subprocess_launcher_push_argv (launcher4, repo_name);
   ide_subprocess_launcher_push_argv (launcher4, app_id);
 


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