mirror of
https://git.yoctoproject.org/poky-contrib
synced 2025-05-08 23:52:25 +08:00
bitbake: fetch2/gitsm: Unpack even when ud.clonedir
is not available
(Bitbake rev: 13d76361ec37faecd84e7b81da22ada7d4e0ba90) Signed-off-by: Stefan Koch <stefan-koch@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
539b012013
commit
22728acd78
@ -150,7 +150,10 @@ class GitSM(Git):
|
||||
def call_process_submodules(self, ud, d, extra_check, subfunc):
|
||||
# If we're using a shallow mirror tarball it needs to be
|
||||
# unpacked temporarily so that we can examine the .gitmodules file
|
||||
if ud.shallow and os.path.exists(ud.fullshallow) and extra_check:
|
||||
# Unpack even when ud.clonedir is not available,
|
||||
# which may occur during a fast shallow clone
|
||||
unpack = extra_check or not os.path.exists(ud.clonedir)
|
||||
if ud.shallow and os.path.exists(ud.fullshallow) and unpack:
|
||||
tmpdir = tempfile.mkdtemp(dir=d.getVar("DL_DIR"))
|
||||
try:
|
||||
runfetchcmd("tar -xzf %s" % ud.fullshallow, d, workdir=tmpdir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user