diff options
author | Diego Sueiro <diego.sueiro@arm.com> | 2024-01-23 11:42:44 -0800 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-01-31 03:51:10 -1000 |
commit | 8f7ce1acf793adf985d52849ba160912eed78982 (patch) | |
tree | b738ac62793f577d8a9717ebdaa19fed5515fb51 | |
parent | a9e3cc3b9eab7a83c715bb8440454e8fea852c2a (diff) | |
download | poky-8f7ce1acf793adf985d52849ba160912eed78982.tar.gz |
bitbake: 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.
(Bitbake rev: 146cd25252ef065d09df0980b7dc670cb7e7b109)
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | bitbake/lib/bblayers/layerindex.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bblayers/layerindex.py b/bitbake/lib/bblayers/layerindex.py index 95b67a6621..f64d18e819 100644 --- a/bitbake/lib/bblayers/layerindex.py +++ b/bitbake/lib/bblayers/layerindex.py | |||
@@ -206,6 +206,7 @@ class LayerIndexPlugin(ActionPlugin): | |||
206 | """ | 206 | """ |
207 | args.show_only = True | 207 | args.show_only = True |
208 | args.ignore = [] | 208 | args.ignore = [] |
209 | args.shallow = True | ||
209 | self.do_layerindex_fetch(args) | 210 | self.do_layerindex_fetch(args) |
210 | 211 | ||
211 | def register_commands(self, sp): | 212 | def register_commands(self, sp): |