[oe-commits] [bitbake] 03/03: Add args.force to localargs before do_add_layer

git at git.openembedded.org git at git.openembedded.org
Fri Oct 6 11:07:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 4325f7a7df67eaf4b51af03b453e84bf88fae408
Author: Jeremy A. Puhlman <jpuhlman at mvista.com>
AuthorDate: Wed Oct 4 09:43:45 2017 -0700

    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 at linuxfoundation.org>
---
 lib/bblayers/layerindex.py | 1 +
 1 file changed, 1 insertion(+)

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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list