From 71f095c147fe6aa7b5e6272002e0498cf9494256 Mon Sep 17 00:00:00 2001 From: Diego Sueiro Date: Wed, 21 Apr 2021 16:20:03 +0100 Subject: 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. Signed-off-by: Diego Sueiro Signed-off-by: Richard Purdie --- lib/bblayers/layerindex.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bblayers/layerindex.py b/lib/bblayers/layerindex.py index b2f27b21e..17dfc9874 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): -- cgit 1.2.3-korg