From 8f7ce1acf793adf985d52849ba160912eed78982 Mon Sep 17 00:00:00 2001 From: Diego Sueiro Date: Tue, 23 Jan 2024 11:42:44 -0800 Subject: [PATCH] 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 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 Signed-off-by: Richard Purdie Signed-off-by: Steve Sakoman --- bitbake/lib/bblayers/layerindex.py | 1 + 1 file changed, 1 insertion(+) 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): """ args.show_only = True args.ignore = [] + args.shallow = True self.do_layerindex_fetch(args) def register_commands(self, sp):