mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 20:59:02 +02:00
prepare-shared-repos: Fix none published builds after disabling limited depth
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
1e0b8d9936
commit
aa378bfa84
|
@ -38,9 +38,10 @@ with tempfile.TemporaryDirectory(prefix="shared-repo-temp-", dir="/home/pokybuil
|
|||
# shallow clones disabled as it doesn't work correctly with revision numbers in the result repo leading to release build failures.
|
||||
if True or args.publish_dir:
|
||||
utils.fetchgitrepo(tempdir, repo, repos[repo], stashdir)
|
||||
utils.publishrepo(tempdir, repo, args.publish_dir)
|
||||
else:
|
||||
utils.fetchgitrepo(tempdir, repo, repos[repo], stashdir, depth=1)
|
||||
if args.publish_dir:
|
||||
utils.publishrepo(tempdir, repo, args.publish_dir)
|
||||
|
||||
utils.printheader("Creating shared src tarball")
|
||||
subprocess.check_call("tar -I zstd -cf " + args.sharedsrcdir.rstrip("/") + ".tar.zst ./*", shell=True, cwd=tempdir)
|
||||
|
|
Loading…
Reference in New Issue
Block a user