summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bblayers/layerindex.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/bitbake/lib/bblayers/layerindex.py b/bitbake/lib/bblayers/layerindex.py
index 9af385db59..53c858db16 100644
--- a/bitbake/lib/bblayers/layerindex.py
+++ b/bitbake/lib/bblayers/layerindex.py
@@ -239,19 +239,22 @@ class LayerIndexPlugin(ActionPlugin):
239 return 1 239 return 1
240 addlayers.append((subdir, name, layerdir)) 240 addlayers.append((subdir, name, layerdir))
241 if not args.show_only: 241 if not args.show_only:
242 localargs = argparse.Namespace()
243 localargs.layerdir = []
244 localargs.force = args.force
242 for subdir, name, layerdir in set(addlayers): 245 for subdir, name, layerdir in set(addlayers):
243 if os.path.exists(layerdir): 246 if os.path.exists(layerdir):
244 if subdir: 247 if subdir:
245 logger.plain("Adding layer \"%s\" to conf/bblayers.conf" % subdir) 248 logger.plain("Adding layer \"%s\" (%s) to conf/bblayers.conf" % (subdir, layerdir))
246 else: 249 else:
247 logger.plain("Adding layer \"%s\" to conf/bblayers.conf" % name) 250 logger.plain("Adding layer \"%s\" (%s) to conf/bblayers.conf" % (name, layerdir))
248 localargs = argparse.Namespace() 251 localargs.layerdir.append(layerdir)
249 localargs.layerdir = layerdir
250 localargs.force = args.force
251 self.do_add_layer(localargs)
252 else: 252 else:
253 break 253 break
254 254
255 if localargs.layerdir:
256 self.do_add_layer(localargs)
257
255 def do_layerindex_show_depends(self, args): 258 def do_layerindex_show_depends(self, args):
256 """Find layer dependencies from layer index. 259 """Find layer dependencies from layer index.
257""" 260"""