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

Manuel Traut manut at linutronix.de
Wed Aug 8 18:31:06 CEST 2018


On Wed, Aug 08, 2018 at 10:15:34AM +0200, Torben Hohn wrote:
> 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>

thanks, applied to devel/elbe-3.0

> ---
>  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
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel



More information about the elbe-devel mailing list