summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy A. Puhlman <jpuhlman@mvista.com>2017-10-04 09:43:45 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-10-07 23:20:41 +0100
commit801188bbd984d34c355be187eeaedacd189f7efe (patch)
tree37bc1db96c0656a1cbcf7baca21093bf9dd27855
parent3e321ad2b880ba4d3a4e19ff5a74d1e73cd9c093 (diff)
downloadpoky-801188bbd984d34c355be187eeaedacd189f7efe.tar.gz
bitbake: Add args.force to localargs before do_add_layer
Adding layer "meta-signing-key" to conf/bblayers.conf Traceback (most recent call last): File "/local/build/project/build/poky/bitbake/bin/bitbake-layers", line 103, in <module> ret = main() File "/local/build/project/build/poky/bitbake/bin/bitbake-layers", line 96, in main return args.func(args) File "/local/build/project/build/poky/bitbake/lib/bblayers/layerindex.py", line 250, in do_layerindex_fetch self.do_add_layer(localargs) File "/local/build/project/build/poky/bitbake/lib/bblayers/action.py", line 44, in do_add_layer if not (args.force or notadded): AttributeError: 'Namespace' object has no attribute 'force' (Bitbake rev: 4325f7a7df67eaf4b51af03b453e84bf88fae408) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bblayers/layerindex.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bblayers/layerindex.py b/bitbake/lib/bblayers/layerindex.py
index 506c1109de..9af385db59 100644
--- a/bitbake/lib/bblayers/layerindex.py
+++ b/bitbake/lib/bblayers/layerindex.py
@@ -247,6 +247,7 @@ class LayerIndexPlugin(ActionPlugin):
247 logger.plain("Adding layer \"%s\" to conf/bblayers.conf" % name) 247 logger.plain("Adding layer \"%s\" to conf/bblayers.conf" % name)
248 localargs = argparse.Namespace() 248 localargs = argparse.Namespace()
249 localargs.layerdir = layerdir 249 localargs.layerdir = layerdir
250 localargs.force = args.force
250 self.do_add_layer(localargs) 251 self.do_add_layer(localargs)
251 else: 252 else:
252 break 253 break