[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [builders/tor-browser-build] branch maint-11.0 updated: Bug 40497: Check that directory does not exist before starting macOS signing
This is an automated email from the git hooks/post-receive script.
boklm pushed a commit to branch maint-11.0
in repository builders/tor-browser-build.
The following commit(s) were added to refs/heads/maint-11.0 by this push:
new bfb21a2 Bug 40497: Check that directory does not exist before starting macOS signing
bfb21a2 is described below
commit bfb21a2a023767583a3a8963caf8681e9cb57643
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
AuthorDate: Mon Jun 6 12:36:58 2022 +0200
Bug 40497: Check that directory does not exist before starting macOS signing
---
tools/signing/do-all-signing | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/tools/signing/do-all-signing b/tools/signing/do-all-signing
index dcf6a02..784255c 100755
--- a/tools/signing/do-all-signing
+++ b/tools/signing/do-all-signing
@@ -31,6 +31,18 @@ function sync-builder-unsigned-to-local-signed {
"$script_dir/sync-builder-unsigned-to-local-signed"
}
+function macos-signer-directory-not-present {
+ # To avoid doing two signings at the same time, or to avoid unknowingly
+ # using parts from a previous signing attempt, we check that the
+ # directory does not exist yet (see tor-browser-build#40497)
+ if ssh "$ssh_host_macos_signer" "test -d $tbb_version"
+ then
+ echo "The directory $tbb_version already exists on $ssh_host_macos_signer"
+ return 1
+ fi
+ return 0
+}
+
function sync-scripts-to-macos-signer {
"$script_dir/sync-scripts-to-macos-signer"
}
@@ -168,6 +180,7 @@ function do_step {
do_step wait-for-finished-build
do_step sync-builder-unsigned-to-local-signed
+do_step macos-signer-directory-not-present
do_step sync-scripts-to-macos-signer
do_step macos-signer-enable-network-proxy-settings
do_step macos-signer-gatekeeper-signing
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits