]> git.decadent.org.uk Git - dak.git/blobdiff - config/backports/cron.unchecked
Only run a dinstall when unchecked had something to do before
[dak.git] / config / backports / cron.unchecked
index fbda8619c20d5d8ee79a1209e7c316c2669cb30b..08fcbf3eec2ade9573cdbd3ccac4e6dba8928dda 100755 (executable)
@@ -33,6 +33,8 @@ LOCKFILE="$lockdir/unchecked.lock"
 LOCK_NEW="$lockdir/processnew.lock"
 NOTICE="$lockdir/daily.lock"
 LOCK_BUILDD="$lockdir/buildd.lock"
+# The state file telling us we have something new to do
+DINSTALLPACKAGES="${lockdir}/dinstall.packages"
 
 # our name
 PROGRAM="unchecked"
@@ -96,8 +98,10 @@ do_newstage
 do_unchecked
 
 if [ ! -z "$changes" ]; then
+    touch ${DINSTALLPACKAGES}
     sync_debbugs
     do_buildd
+
 #    echo "Starting g-p-s: $(date +%H:%M:%S)"
 #    do_dists
 #    echo "Done with g-p-s: $(date +%H:%M:%S)"