aboutsummaryrefslogtreecommitdiff
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-06 12:06:05 +0100
commit4325f7a7df67eaf4b51af03b453e84bf88fae408 (patch)
tree679a18b657b486c71820b00db758a53910bd6c74
parentca10186d60a52af6464bd998fa0b7146513bed0e (diff)
downloadbitbake-4325f7a7df67eaf4b51af03b453e84bf88fae408.zip
bitbake-4325f7a7df67eaf4b51af03b453e84bf88fae408.tar.gz
bitbake-4325f7a7df67eaf4b51af03b453e84bf88fae408.tar.bz2
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' Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bblayers/layerindex.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bblayers/layerindex.py b/lib/bblayers/layerindex.py
index 506c110..9af385d 100644
--- a/lib/bblayers/layerindex.py
+++ b/lib/bblayers/layerindex.py
@@ -247,6 +247,7 @@ class LayerIndexPlugin(ActionPlugin):
logger.plain("Adding layer \"%s\" to conf/bblayers.conf" % name)
localargs = argparse.Namespace()
localargs.layerdir = layerdir
+ localargs.force = args.force
self.do_add_layer(localargs)
else:
break