[gnome-builder] flatpak: add --share=network
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: add --share=network
- Date: Tue, 29 Nov 2016 05:52:32 +0000 (UTC)
commit 32c0814854c495c90797bf37dcd3604045cebaf9
Author: Christian Hergert <chergert redhat com>
Date: Mon Nov 28 21:45:47 2016 -0800
flatpak: add --share=network
This allows network access for building so that things like autogen.sh
can do "git submodule init" which is a common practice. Since we can't
rely on flatpak-builder to do this for the topmost project, we need this.
However, in the future, it would be nice to detect if it is necessary and
only --share=network for the appropriate phase.
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 4a1bd01..de78a47 100644
--- a/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/plugins/flatpak/gbp-flatpak-runtime.c
@@ -646,6 +646,7 @@ gbp_flatpak_runtime_create_launcher (IdeRuntime *runtime,
/* Add 'flatpak build' and the specified arguments to the launcher */
ide_subprocess_launcher_push_argv (ret, "flatpak");
ide_subprocess_launcher_push_argv (ret, "build");
+ ide_subprocess_launcher_push_argv (ret, "--share=network");
if (!ide_str_empty0 (project_path))
{
g_autofree gchar *filesystem_option = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]