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

Torben Hohn torben.hohn at linutronix.de
Mon Apr 8 15:42:29 CEST 2019


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>
---
 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




More information about the elbe-devel mailing list