diff options
author | Diego Sueiro <diego.sueiro@arm.com> | 2024-01-23 11:42:44 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-23 20:04:40 +0000 |
commit | 146cd25252ef065d09df0980b7dc670cb7e7b109 (patch) | |
tree | 8f5da338fd1be3973330d6bbcec20e411f1b142a | |
parent | 36959b25c64044dd4bca65bd1bb1243823d51545 (diff) | |
download | bitbake-146cd25252ef065d09df0980b7dc670cb7e7b109.tar.gz |
layerindex: Fix bitbake-layers layerindex-show-depends command
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 <diego.sueiro@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bblayers/layerindex.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bblayers/layerindex.py b/lib/bblayers/layerindex.py index 95b67a662..f64d18e81 100644 --- a/lib/bblayers/layerindex.py +++ b/lib/bblayers/layerindex.py @@ -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): |