aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bblayers/layerindex.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bblayers/layerindex.py')
-rw-r--r--lib/bblayers/layerindex.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/bblayers/layerindex.py b/lib/bblayers/layerindex.py
index 9af385db5..53c858db1 100644
--- a/lib/bblayers/layerindex.py
+++ b/lib/bblayers/layerindex.py
@@ -239,19 +239,22 @@ class LayerIndexPlugin(ActionPlugin):
return 1
addlayers.append((subdir, name, layerdir))
if not args.show_only:
+ localargs = argparse.Namespace()
+ localargs.layerdir = []
+ localargs.force = args.force
for subdir, name, layerdir in set(addlayers):
if os.path.exists(layerdir):
if subdir:
- logger.plain("Adding layer \"%s\" to conf/bblayers.conf" % subdir)
+ logger.plain("Adding layer \"%s\" (%s) to conf/bblayers.conf" % (subdir, layerdir))
else:
- 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)
+ logger.plain("Adding layer \"%s\" (%s) to conf/bblayers.conf" % (name, layerdir))
+ localargs.layerdir.append(layerdir)
else:
break
+ if localargs.layerdir:
+ self.do_add_layer(localargs)
+
def do_layerindex_show_depends(self, args):
"""Find layer dependencies from layer index.
"""