diff options
author | 2023-08-07 15:53:51 +0200 | |
---|---|---|
committer | 2023-08-07 15:53:51 +0200 | |
commit | 32bac9644e6af62151c4d213070bf3d2c3ac08f5 (patch) | |
tree | 7af1d34acb4b8454d8f0804cd70c09126a8b84fb | |
parent | Silence errors for arches that have not uploaded yet (diff) | |
download | mastermirror-scripts-wip/dilfridge.tar.gz mastermirror-scripts-wip/dilfridge.tar.bz2 mastermirror-scripts-wip/dilfridge.zip |
Abort noisily if lockfile existswip/dilfridge
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rwxr-xr-x | sign-sync-binpackages.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sign-sync-binpackages.sh b/sign-sync-binpackages.sh index a71f8ba..7db6611 100755 --- a/sign-sync-binpackages.sh +++ b/sign-sync-binpackages.sh @@ -47,7 +47,10 @@ export BINPKG_GPG_VERIFY_GPG_HOME=${BINPKG_GPG_SIGNING_GPG_HOME} [[ $(whoami) == "gmirror" ]] || exit 111 # we make sure we're not running twice in parallel -[[ -f ${STAGINGTREE}/.running ]] && exit 112 +if [[ -f ${STAGINGTREE}/.running ]] ; then + echo sign-sync-binpackages.sh lockfile ${STAGINGTREE}/.running exists, aborting + exit 112 +fi touch ${STAGINGTREE}/.running || exit 110 # make sure we have an updated gpg-agent |