summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2016-02-12 08:47:23 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-12 08:57:29 +0000
commit41d06f512504cb24bb727308d08490b8741f332d (patch)
tree5101626eb5cec9f5077a19cf91983dccc5f2799f
parent2ff6c2ca2e22eaef37ccb4025bc0b78c42695eed (diff)
downloadopenembedded-core-41d06f512504cb24bb727308d08490b8741f332d.tar.gz
openembedded-core-41d06f512504cb24bb727308d08490b8741f332d.tar.bz2
openembedded-core-41d06f512504cb24bb727308d08490b8741f332d.zip
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 <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/base.bbclass2
1 files changed, 1 insertions, 1 deletions
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')