From 41d06f512504cb24bb727308d08490b8741f332d Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Fri, 12 Feb 2016 08:47:23 +0100 Subject: base.bbclass: fix support for gitsm:// Before the "Improve handling of SRCPV" change, gitsm SRC_URI entries were merely missing a dependency on git for do_fetch. But after that change, the special handling for "needsrcrev" was not applied, leading to a fetcher error (older bitbake) or even a parse error (recent bitbake). Signed-off-by: Patrick Ohly Signed-off-by: Richard Purdie --- meta/classes/base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes/base.bbclass') diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 8ce9dd4315..1372f38461 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -564,7 +564,7 @@ python () { d.appendVarFlag('do_fetch', 'depends', ' subversion-native:do_populate_sysroot') # Git packages should DEPEND on git-native - elif scheme == "git": + elif scheme in ("git", "gitsm"): needsrcrev = True d.appendVarFlag('do_fetch', 'depends', ' git-native:do_populate_sysroot') -- cgit v1.2.3