diff options
author | Diego Sueiro <diego.sueiro@arm.com> | 2021-04-21 16:20:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-23 10:13:13 +0100 |
commit | 9fae310dd2c24259b4b4707744fec92145f5816c (patch) | |
tree | a9659545c017619e8e58251c583b96f67d901c87 /bitbake/lib/bblayers | |
parent | 93c73856f488dcff238c529c3e141541eaff2494 (diff) | |
download | poky-9fae310dd2c24259b4b4707744fec92145f5816c.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: 71f095c147fe6aa7b5e6272002e0498cf9494256)
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bblayers')
-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 b2f27b21ee..17dfc9874d 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): |