X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdinstall.functions;h=be4ed572dd687f3a53bf48289f41cd8ec95dff2f;hb=89e12ff173b59ba73d6ab64d312e78de2b9d812e;hp=1834841b74b1ad04505b0aca1e093f63d92af4eb;hpb=2f30eb272c2dfbdb3544d7e0a0e120a9e4be3294;p=dak.git diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index 1834841b..be4ed572 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -4,14 +4,14 @@ function ts() { echo "Archive maintenance timestamp ($1): $(date +%H:%M:%S)" } -# Remove all locks -function remove_locks() { - rm -f $LOCK_DAILY $LOCK_ACCEPTED $LOCK_NEW +# Remove daily lock +function remove_daily_lock() { + rm -f $LOCK_DAILY } -# trap handler for cleaning up on signal / error -function cleanup() { - remove_locks +# Remove all locks +function remove_all_locks() { + rm -f $LOCK_DAILY $LOCK_ACCEPTED $LOCK_NEW } # If we error out this one is called, *FOLLOWED* by cleanup above