[elbe-devel] [PATCH 02/10] rfs: correctly replace LOCALMACHINE with 10.0.2.2
Torben Hohn
torben.hohn at linutronix.de
Thu May 6 14:55:23 CEST 2021
the debootstrap code always gets executed in initvm.
The correct replacement for LOCALMACHINE is 10.0.2.2 in this case.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/rfs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/rfs.py b/elbepack/rfs.py
index d8627deff..c4d44d4e0 100644
--- a/elbepack/rfs.py
+++ b/elbepack/rfs.py
@@ -164,7 +164,7 @@ class BuildEnv:
if self.xml.prj.has("mirror/primary_proxy"):
os.environ["no_proxy"] = "10.0.2.2,localhost,127.0.0.1"
proxy = self.xml.prj.text("mirror/primary_proxy")
- proxy = proxy.strip().replace("LOCALMACHINE", "localhost")
+ proxy = proxy.strip().replace("LOCALMACHINE", "10.0.2.2")
os.environ["http_proxy"] = proxy
os.environ["https_proxy"] = proxy
else:
--
2.20.1
More information about the elbe-devel
mailing list