]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/cron.unchecked
autocruft doesnt care about args, so why bother
[dak.git] / config / debian / cron.unchecked
index 6d3226d894ac74d2052bf4ea7bf9b67add985013..916d4e5dd3d1f1b7734744a95449ded84cb3bd46 100755 (executable)
@@ -65,12 +65,6 @@ function do_buildd () {
     fi
 }
 
-function do_dists () {
-    #cd $configdir
-    #dak generate-filelist -s unstable,experimental -i
-    dak generate-packages-sources2 -s unstable experimental >/dev/null
-}
-
 ########################################################################
 # the actual unchecked functions follow                                #
 ########################################################################
@@ -80,8 +74,8 @@ export LANG=C
 export LC_ALL=C
 
 # only run one cron.unchecked
-if ! lockfile -r8 $LOCKFILE; then
-    echo "aborting cron.unchecked because $LOCKFILE has already been locked"
+if ! lockfile -r8 $LOCKFILE 2> /dev/null; then
+    echo "aborting cron.unchecked because $LOCKFILE has already been locked"
     exit 0
 fi
 trap cleanup 0
@@ -101,7 +95,6 @@ do_unchecked
 if [ ! -z "$changes" ]; then
     sync_debbugs
     do_buildd
-    #do_dists
 fi
 
 dak contents -l 10000 scan-binary