[OE-core] [PATCH] bitbake: gitsm: download submodules
Freihofer, Adrian
adrian.freihofer at siemens.com
Wed Mar 4 08:12:27 UTC 2020
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 at 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)))
More information about the Openembedded-core
mailing list