From aa378bfa841cf47e5eed15a75008cd9ad3ffad51 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 24 Jan 2022 18:05:23 +0000 Subject: [PATCH] prepare-shared-repos: Fix none published builds after disabling limited depth Signed-off-by: Richard Purdie --- scripts/prepare-shared-repos | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/prepare-shared-repos b/scripts/prepare-shared-repos index e02cb15..64a9bca 100755 --- a/scripts/prepare-shared-repos +++ b/scripts/prepare-shared-repos @@ -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)