gitpkgv.bbclass: Add support for gitsm:// url type

When using "gitsm://", for projects using submodules, instead of "git://", gitpkgv does not work.

The limitation is synthetic, this patch simply adds gitsm as an allowed url type.

Signed-off-by: Daniel Adolfsson <daniel.adolfsson@bluetest.se>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Daniel Adolfsson 2015-12-02 11:48:46 +01:00 committed by Martin Jansa
parent 84e6322a0a
commit 22004e5281

View File

@ -65,7 +65,7 @@ def get_git_pkgv(d, use_tags):
found = False
for url in ud.values():
if url.type == 'git':
if url.type == 'git' or url.type == 'gitsm':
for name, rev in url.revisions.items():
if not os.path.exists(url.localpath):
return None