[1.46][dunfell][PATCH] layerindex: Fix bitbake-layers layerindex-show-depends command
From: Diego Sueiro <[email protected]>
Running 'bitbake-layers layerindex-show-depends meta-filesystems' fails with:
```
Traceback (most recent call last):
File "<...>/poky/bitbake/bin/bitbake-layers", line 93, in <module>
ret = main()
File "<...>/poky/bitbake/bin/bitbake-layers", line 86, in main
return args.func(args)
File "<...>/poky/bitbake/lib/bblayers/layerindex.py", line 209, in do_layerindex_show_depends
self.do_layerindex_fetch(args)
File "<...>/poky/bitbake/lib/bblayers/layerindex.py", line 182, in do_layerindex_fetch
args.shallow)
AttributeError: 'Namespace' object has no attribute 'shallow'
```Initialize the shallow attribute to fix it.
Signed-off-by Diego Sueiro <[email protected]>
Signed-off-by Richard Purdie <[email protected]>
---
Backport from 71f095c14
lib/bblayers/layerindex.py | 1 + 1 file changed, 1 insertion(+)
lib/bblayers/layerindex.py +1 -0
@@ -206,6 +206,7 @@ class LayerIndexPlugin(ActionPlugin): """ args.show_only = True args.ignore = [] + args.shallow = True self.do_layerindex_fetch(args) def register_commands(self, sp):
Signature · 1 line
2.34.1