[elbe-devel] [PATCH 1/8] elbeproject: add norecommend option to get_rpcaptcache() function
Torben Hohn
torben.hohn at linutronix.de
Tue May 14 14:28:57 CEST 2019
allow setting norecommend (e.g. for hostsdk). But also default to
the old behaviour using None and self.xml.prj.has('norecommend')
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/elbeproject.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index ec878d98f..b5865fa28 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -783,10 +783,13 @@ class ElbeProject (object):
except MemoryError:
self.log.printo("write source.xml failed (archive to huge?)")
- def get_rpcaptcache(self, env=None):
+ def get_rpcaptcache(self, env=None, norecommend=None):
if not env:
env = self.buildenv
+ if norecommend is None:
+ norecommend = self.xml.prj.has('norecommend'),
+
if env.arch == "default":
arch = self.arch
else:
@@ -798,7 +801,7 @@ class ElbeProject (object):
self.log.fp.name,
arch,
self.rpcaptcache_notifier,
- self.xml.prj.has('norecommend'),
+ norecommend,
self.xml.prj.has('noauth'))
return env.rpcaptcache
--
2.11.0
More information about the elbe-devel
mailing list