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)