[elbe-devel] [PATCH] rfs: replace LOCALMACHINE in key url

Torben Hohn torben.hohn at linutronix.de
Wed Aug 8 10:15:34 CEST 2018


to access file on the host, elbe uses LOCALMACHINE.
this is not replaced with 10.0.2.2 for the key download.

add the replacement.

Patch is untested.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/rfs.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elbepack/rfs.py b/elbepack/rfs.py
index e5527b1c..e2ad3ce3 100644
--- a/elbepack/rfs.py
+++ b/elbepack/rfs.py
@@ -197,6 +197,7 @@ class BuildEnv ():
             for url in self.xml.node('project/mirror/url-list'):
                 if url.has('key'):
                     keyurl = url.text('key').strip()    # URL to key
+                    keyurl = keyurl.replace('LOCALMACHINE', '10.0.2.2')
                     name = keyurl.split('/')[-1]        # Filename of key
 
                     myKey = urllib2.urlopen(keyurl).read()
-- 
2.11.0




More information about the elbe-devel mailing list