From: Ryan Murray Date: Tue, 27 Jan 2004 06:53:26 +0000 (+0000) Subject: sync with auric; stats generation and race condition work arounds X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=0d15407be5944809b166258f3b2b49e2088fcdef;p=dak.git sync with auric; stats generation and race condition work arounds --- diff --git a/wanna-build/trigger.daily b/wanna-build/trigger.daily index e69a412a..af753741 100755 --- a/wanna-build/trigger.daily +++ b/wanna-build/trigger.daily @@ -8,7 +8,9 @@ # Sources.* == uncompressed, concat'd version PATH="/bin:/usr/bin" #testing must be before unstable so late upld don't build for testing needlessly -DISTS="stable stable-security testing testing-security unstable" +#DISTS="stable stable-security testing testing-security unstable" +DISTS="stable stable-security testing unstable" +STATS_DISTS="unstable testing stable" SECTIONS="main contrib non-free" ARCHS_stable="m68k arm sparc alpha powerpc i386 mips mipsel ia64 hppa s390" ARCHS_testing="$ARCHS_stable" @@ -144,7 +146,11 @@ for d in $DISTS ; do if [ "$d" = "unstable" -o ! -e "quinn-unstable.$a-old" ]; then quinn-diff -A $a -a /org/buildd.debian.org/web/quinn-diff/Packages-arch-specific -s Sources.$d -p Packages.$d.$a >> quinn-$d.$a else - quinn-diff -A $a -a /org/buildd.debian.org/web/quinn-diff/Packages-arch-specific -s Sources.$d -p Packages.$d.$a | fgrep -v -f quinn-unstable.$a-old >> quinn-$d.$a + if echo $d | grep -qv -- -security; then + quinn-diff -A $a -a /org/buildd.debian.org/web/quinn-diff/Packages-arch-specific -s Sources.$d -p Packages.$d.$a | fgrep -v -f quinn-unstable.$a-old | grep ":out-of-date\]$" >> quinn-$d.$a + else + quinn-diff -A $a -a /org/buildd.debian.org/web/quinn-diff/Packages-arch-specific -s Sources.$d -p Packages.$d.$a >> quinn-$d.$a + fi fi done done @@ -176,12 +182,13 @@ for a in $ARCHS_unstable ; do perl -pi -e 's#^(non-US/)?(non-free)/.*$##msg' quinn-$d.$a wanna-build --merge-quinn --dist=$d --database=$a/build-db quinn-$d.$a wanna-build --merge-sources --dist=$d --database=$a/build-db Sources.$d + wanna-build --clean-db --dist=$d --database=$a/build-db mv Packages.$d.$a Packages.$d.$a-old mv quinn-$d.$a quinn-$d.$a-old - if [ "$DAY" = "0" -a "$d" = "unstable" ]; then - savelog -p -c 26 /org/wanna-build/db/$a/transactions.log - fi done + if [ "$DAY" = "0" ]; then + savelog -p -c 26 /org/wanna-build/db/$a/transactions.log + fi wanna-build --remove-maintenance-lock --database=$a/build-db done umask 022 @@ -195,3 +202,9 @@ echo "merge ended `date`" rm -f "$LOCKFILE" trap - /org/buildd.debian.org/bin/makegraph +for a in $ARCHS_stable; do + echo Last Updated: `date -u` > /org/buildd.debian.org/web/stats/$a.txt + for d in $STATS_DISTS; do + /org/wanna-build/bin/wanna-build-statistics --database=$a/build-db --dist=$d >> /org/buildd.debian.org/web/stats/$a.txt + done +done