X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fbackports%2Fcron.unchecked;h=13be8d592a3ac0ce18f57e90c1762a98181a8fb4;hb=362ea497d3c9ee5891fca772132269d809a0547a;hp=fbda8619c20d5d8ee79a1209e7c316c2669cb30b;hpb=7b4237c64e1577eacec3b6f1ec3593d651190bf0;p=dak.git diff --git a/config/backports/cron.unchecked b/config/backports/cron.unchecked index fbda8619..13be8d59 100755 --- a/config/backports/cron.unchecked +++ b/config/backports/cron.unchecked @@ -17,6 +17,7 @@ # exit on errors set -e +set -o pipefail # make sure to only use defined variables set -u # ERR traps should be inherited from functions too. (And command @@ -33,6 +34,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" @@ -63,9 +66,9 @@ function do_buildd () { dak make-overrides &>/dev/null rm -f override.sid.all3 override.sid.all3.src for i in main contrib non-free main.debian-installer; do - cat override.lenny-backports.$i >> override.sid.all3 + cat override.squeeze-backports.$i >> override.sid.all3 if [ "$i" != "main.debian-installer" ]; then - cat override.lenny-backports.$i.src >> override.sid.all3.src + cat override.squeeze-backports.$i.src >> override.sid.all3.src fi done make_buildd_dir @@ -76,7 +79,6 @@ function do_buildd () { function do_dists () { cd $configdir dak generate-filelist - GZIP='--rsyncable' ; export GZIP dak generate-packages-sources } @@ -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)"