summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2023-08-07 15:53:51 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2023-08-07 15:53:51 +0200
commit32bac9644e6af62151c4d213070bf3d2c3ac08f5 (patch)
tree7af1d34acb4b8454d8f0804cd70c09126a8b84fb
parentSilence errors for arches that have not uploaded yet (diff)
downloadmastermirror-scripts-32bac9644e6af62151c4d213070bf3d2c3ac08f5.tar.gz
mastermirror-scripts-32bac9644e6af62151c4d213070bf3d2c3ac08f5.tar.bz2
mastermirror-scripts-32bac9644e6af62151c4d213070bf3d2c3ac08f5.zip
Abort noisily if lockfile existswip/dilfridge
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rwxr-xr-xsign-sync-binpackages.sh5
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