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:
Richard Purdie 2022-01-24 18:05:23 +00:00
parent 1e0b8d9936
commit aa378bfa84

View File

@ -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. # 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: if True or args.publish_dir:
utils.fetchgitrepo(tempdir, repo, repos[repo], stashdir) utils.fetchgitrepo(tempdir, repo, repos[repo], stashdir)
utils.publishrepo(tempdir, repo, args.publish_dir)
else: else:
utils.fetchgitrepo(tempdir, repo, repos[repo], stashdir, depth=1) 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") utils.printheader("Creating shared src tarball")
subprocess.check_call("tar -I zstd -cf " + args.sharedsrcdir.rstrip("/") + ".tar.zst ./*", shell=True, cwd=tempdir) subprocess.check_call("tar -I zstd -cf " + args.sharedsrcdir.rstrip("/") + ".tar.zst ./*", shell=True, cwd=tempdir)