]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: fix support for gitsm://
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 12 Feb 2016 07:47:23 +0000 (08:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Feb 2016 08:57:29 +0000 (08:57 +0000)
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>
meta/classes/base.bbclass

index 8ce9dd4315f8b4bc13e5159caa025e47627d5d1f..1372f38461ef2fd71629a1c3f5eae939d47c332b 100644 (file)
@@ -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')