summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Sueiro <diego.sueiro@arm.com>2024-01-23 11:42:44 -0800
committerSteve Sakoman <steve@sakoman.com>2024-01-31 03:51:10 -1000
commit8f7ce1acf793adf985d52849ba160912eed78982 (patch)
treeb738ac62793f577d8a9717ebdaa19fed5515fb51
parenta9e3cc3b9eab7a83c715bb8440454e8fea852c2a (diff)
downloadpoky-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.py1
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):