Skip to contentSkip to conversation

[1.46][dunfell][PATCH] layerindex: Fix bitbake-layers layerindex-show-depends command

PATCH Tim Orling 1 participant 1 message Jan 23, 2024

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

From: Diego Sueiro <[email protected]>

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.

---
Backport from 71f095c14

 lib/bblayers/layerindex.py | 1 +
 1 file changed, 1 insertion(+)
lib/bblayers/layerindex.py +1 -0
index 95b67a662..f64d18e81 100644
@@ -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):
Signature · 1 line
2.34.1