]> git.decadent.org.uk Git - dak.git/commitdiff
automatically clean transitions
authorMark Hymers <mhy@debian.org>
Sat, 18 Apr 2009 16:28:16 +0000 (17:28 +0100)
committerMark Hymers <mhy@debian.org>
Sat, 18 Apr 2009 16:28:16 +0000 (17:28 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
config/debian/cron.dinstall

index 6988779522175352f977d40f37b7bd45a67a1c83..eb9f37d5ca5944500d225a7c9314fd9f701b4218 100755 (executable)
@@ -269,6 +269,12 @@ function expire() {
     $scriptsdir/expire_dumps -d . -p -f "dump_*"
 }
 
+function transitionsclean() {
+    log "Removing out of date transitions..."
+    cd $base
+    dak transitions -c -a
+}
+
 function reports() {
     # Send a report on NEW/BYHAND packages
     log "Nagging ftpteam about NEW/BYHAND packages"
@@ -729,6 +735,14 @@ GO=(
 )
 stage $GO
 
+GO=(
+    FUNC="transitionsclean"
+    TIME="transitionsclean"
+    ARGS=""
+    ERR=""
+)
+stage $GO
+
 GO=(
     FUNC="reports"
     TIME="reports"