Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] bitbake: gitsm: download submodules
@ 2020-03-04  8:12 Freihofer, Adrian
  2020-03-04  8:32 ` ✗ patchtest: failure for " Patchwork
  2020-03-04  9:59 ` [PATCH] " Paul Barker
  0 siblings, 2 replies; 8+ messages in thread
From: Freihofer, Adrian @ 2020-03-04  8:12 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org

The unpack function failed because the submodules were not downloaded.
Calling download before unpack for each submodule solves this issue.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
---
 bitbake/lib/bb/fetch2/gitsm.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bitbake/lib/bb/fetch2/gitsm.py
b/bitbake/lib/bb/fetch2/gitsm.py
index c622771d21..3715e9824f 100644
--- a/bitbake/lib/bb/fetch2/gitsm.py
+++ b/bitbake/lib/bb/fetch2/gitsm.py
@@ -184,6 +184,7 @@ class GitSM(Git):
 
             try:
                 newfetch = Fetch([url], d, cache=False)
+                newfetch.download()
                 newfetch.unpack(root=os.path.dirname(os.path.join(repo
_conf, 'modules', module)))
             except Exception as e:
                 logger.error('gitsm: submodule unpack failed: %s %s' %
(type(e).__name__, str(e)))

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

end of thread, other threads:[~2020-03-24 20:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-04  8:12 [PATCH] bitbake: gitsm: download submodules Freihofer, Adrian
2020-03-04  8:32 ` ✗ patchtest: failure for " Patchwork
2020-03-04  9:59 ` [PATCH] " Paul Barker
2020-03-04 12:30   ` Freihofer, Adrian
2020-03-05  9:42     ` Paul Barker
2020-03-05 22:56       ` Freihofer, Adrian
2020-03-23 17:30         ` [OE-core] " Paul Barker
2020-03-24 20:17           ` Adrian Freihofer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox