]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/dinstall.functions
define temppath
[dak.git] / config / debian / dinstall.functions
index 1834841b74b1ad04505b0aca1e093f63d92af4eb..be4ed572dd687f3a53bf48289f41cd8ec95dff2f 100644 (file)
@@ -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