[elbe-devel] [PATCH 08/10] elbeproject: obey env.arch in ElbeProject.get_rpcaptcache()

Manuel Traut manut at linutronix.de
Wed Apr 10 10:48:41 CEST 2019


On 15:42 Mon 08 Apr     , Torben Hohn wrote:
> when env.arch is setup and different from "default" it should
> be used instead of ElbeProject.arch
> 
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>

Reviewed-by: Manuel Traut <manut at linutronix.de>


> ---
>  elbepack/elbeproject.py | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
> index 73f917e9..45448363 100644
> --- a/elbepack/elbeproject.py
> +++ b/elbepack/elbeproject.py
> @@ -733,11 +733,17 @@ class ElbeProject (object):
>      def get_rpcaptcache(self, env=None):
>          if not env:
>              env = self.buildenv
> +
> +        if env.arch == "default":
> +            arch = self.arch
> +        else:
> +            arch = env.arch
> +
>          if env.rpcaptcache is None:
>              env.rpcaptcache = get_rpcaptcache(
>                  env.rfs,
>                  self.log.fp.name,
> -                self.arch,
> +                arch,
>                  self.rpcaptcache_notifier,
>                  self.xml.prj.has('norecommend'),
>                  self.xml.prj.has('noauth'))
> -- 
> 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