[oe-commits] [bitbake] 02/02: bblayers: Don't parse all recipes when calling add-layer

git at git.openembedded.org git at git.openembedded.org
Tue Jul 31 21:57:36 UTC 2018


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

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

commit 5601c0a77459a039c8b45a8e3125c97399311b85
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Jul 31 12:43:54 2018 +0000

    bblayers: Don't parse all recipes when calling add-layer
    
    When adding multiple layers in a chain of commands, reparsing all recipes
    each time can be painfully slow. Instead just parse the base configuration
    which gives some confidence things worked out correctly without as much
    overhead.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bblayers/action.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bblayers/action.py b/lib/bblayers/action.py
index aa575d1..a3f658f 100644
--- a/lib/bblayers/action.py
+++ b/lib/bblayers/action.py
@@ -45,7 +45,7 @@ class ActionPlugin(LayerPlugin):
             notadded, _ = bb.utils.edit_bblayers_conf(bblayers_conf, layerdirs, None)
             if not (args.force or notadded):
                 try:
-                    self.tinfoil.parseRecipes()
+                    self.tinfoil.run_command('parseConfiguration')
                 except bb.tinfoil.TinfoilUIException:
                     # Restore the back up copy of bblayers.conf
                     shutil.copy2(backup, bblayers_conf)

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


More information about the Openembedded-commits mailing list