All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] bitbake: layerindex: Fix bitbake-layers layerindex-show-depends command
@ 2021-04-21 15:20 Diego Sueiro
  2021-04-21 15:20 ` [PATCH v2 2/2] bitbake: layerindex: Add --fetchdir parameter to layerindex-fetch Diego Sueiro
  0 siblings, 1 reply; 2+ messages in thread
From: Diego Sueiro @ 2021-04-21 15:20 UTC (permalink / raw)
  To: bitbake-devel; +Cc: nd, Diego Sueiro

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.

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
---
 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 b2f27b21ee..17dfc9874d 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):
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-21 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21 15:20 [PATCH v2 1/2] bitbake: layerindex: Fix bitbake-layers layerindex-show-depends command Diego Sueiro
2021-04-21 15:20 ` [PATCH v2 2/2] bitbake: layerindex: Add --fetchdir parameter to layerindex-fetch Diego Sueiro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.