From 07d2cc08925280afb5b79e1fa15bd0eef9a21ad7 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Thu, 1 Aug 2002 21:01:37 +0000 Subject: [PATCH] use two if's instead --- cron.buildd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cron.buildd b/cron.buildd index 0907b15c..b248e8f5 100644 --- a/cron.buildd +++ b/cron.buildd @@ -10,7 +10,8 @@ export SCRIPTVARS=/org/ftp.debian.org/katie/vars LOCKFILE="/org/wanna-build/tmp/DB_Maintenance_In_Progress" -if [ ! -e "$ftpdir/Archive_Maintenance_In_Progress" -a lockfile -! -r3 $LOCKFILE ]; then +if [ ! -e "$ftpdir/Archive_Maintenance_In_Progress" ]; then + if lockfile -! -r3 $LOCKFILE; then cleanup() { rm -f "$LOCKFILE" } @@ -26,4 +27,5 @@ if [ ! -e "$ftpdir/Archive_Maintenance_In_Progress" -a lockfile -! -r3 $LOCKFILE quinn-diff -a /org/buildd.debian.org/web/quinn-diff/Packages-arch-specific -A $a 2>/dev/null | grep -v ^non-free | wanna-build -b $a/build-db --merge-partial-quinn 2> /dev/null wanna-build -A $a -b $a/build-db --merge-packages Packages 2>/dev/null done + fi fi -- 2.39.5