]> git.donarmstrong.com Git - wannabuild.git/blobdiff - trigger.daily
Add kfreebsd to the stats.
[wannabuild.git] / trigger.daily
index 73b17768113ac50dadb6c39620e6791de38bcc73..c8222958b0bdd0eb0222d470cba0461ec4e1013b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -x
 #
 # Updates wanna-build databases after the archive maintenance
 # finishes
@@ -10,8 +10,9 @@
 LANG=C
 PATH="/bin:/usr/bin"
 #testing must be before unstable so late upld don't build for testing needlessly
-#DISTS="oldstable-security stable-security testing-security oldstable stable testing unstable"
-DISTS="stable-security testing-security stable testing unstable"
+DISTS="oldstable-security stable-security testing-security oldstable stable testing unstable"
+# While oldstable is purged
+#DISTS="stable-security testing-security stable testing unstable"
 STATS_DISTS="unstable testing stable"
 SECTIONS="main contrib non-free"
 TMPDIR="/org/wanna-build/tmp"
@@ -41,7 +42,7 @@ echo Updating wanna-build databases...
 umask 027
 
 if [ "$DAY" = "0" ]; then
-       savelog -c 26 -p /srv/wanna-build/db/merge.log
+       savelog -c 64 -p /srv/wanna-build/db/merge.log
 fi
 
 exec 3<&1 >> /srv/wanna-build/db/merge.log 2>&1
@@ -158,7 +159,12 @@ echo "fetch and quinn completed: `date -u`"
 echo "fetch and quinn completed: `date -u`" >&3
 
 umask 002
-for a in $ARCHS_unstable ; do
+# Gross hack: we need a list of all architectures, because this loop
+# insists on iterating on arches and then suites, instead of the
+# opposite.
+ALL_ARCHES=$(echo $ARCHS_oldstable $ARCHS_stable $ARCHS_testing $ARCHS_unstable \
+            | tr ' ' '\n' | sort -u)
+for a in $ALL_ARCHES ; do
        wanna-build --create-maintenance-lock --database=$a/build-db
 
        for d in $DISTS ; do
@@ -198,7 +204,7 @@ for a in $ARCHS_unstable ; do
                mv quinn-$d.$a quinn-$d.$a-old
        done
        if [ "$DAY" = "0" ]; then
-               savelog -p -c 26 /srv/wanna-build/db/$a/transactions.log
+               savelog -p -c 128 /srv/wanna-build/db/$a/transactions.log
        fi
        wanna-build --remove-maintenance-lock --database=$a/build-db
 done
@@ -221,7 +227,7 @@ if (( $last + $interval < $now )); then
        rm -f "$LOCKFILE"
        trap - 0
        /srv/buildd.debian.org/bin/makegraph
-       for a in $ARCHS_stable; do
+       for a in $ALL_ARCHES; do
            echo Last Updated: `date -u` > /srv/buildd.debian.org/web/stats/$a.txt
            for d in $STATS_DISTS; do
                /srv/wanna-build/bin/wanna-build-statistics --database=$a/build-db --dist=$d >> /srv/buildd.debian.org/web/stats/$a.txt