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"
}
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