Skip to contentSkip to conversation

bblayers: Don't parse all recipes when calling add-layer

PATCH New Richard Purdie 1 participant 1 message Jul 31, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 lib/bblayers/action.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bblayers/action.py +1 -1
index aa575d1c09..a3f658f931 100644
@@ -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)
Signature · 1 line
2.17.1