X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdinstall.functions;h=be4ed572dd687f3a53bf48289f41cd8ec95dff2f;hb=216ef363720a79a005e998850ee0113ea7f2827c;hp=1834841b74b1ad04505b0aca1e093f63d92af4eb;hpb=3d4f5a474e5550e42c88f30bdc5fd094984dfcc1;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