From: Joachim Breitner Date: Tue, 5 Aug 2008 15:43:15 +0000 (-0300) Subject: Get wanna-build-database in cron.weekly X-Git-Tag: debian-r/squeeze~1476^2~83^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8e475b502ed8cc0696984ac7cb7aad91a0cfca27;p=dak.git Get wanna-build-database in cron.weekly Add a script to fetch the wanna-build-database from http://buildd.debian.org/stats/, call this script from cron.weekly, and document this change in the ChangeLog. --- diff --git a/ChangeLog b/ChangeLog index d8619341..74879a3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-08-05 Joachim Breitner + + * dak/cruft_report.py: In full mode, report out-of-date binaries on + architectures that have set Not-For-Us for that package. + + * scripts/nfu/get-w-b-db: Script to fetch the wanna-build database + dump from http://buildd.debian.org/ + + * config/debian/cron.weekly: Run the above script + 2008-08-03 Mark Hymers * dak/process_new.py: Apply jvw's patch so that process_new shows diff --git a/config/debian/cron.weekly b/config/debian/cron.weekly index 39224ce8..9a4c56f1 100755 --- a/config/debian/cron.weekly +++ b/config/debian/cron.weekly @@ -49,6 +49,10 @@ echo "Cleanup apt-ftparchive's database" apt-ftparchive -q clean apt.conf apt-ftparchive -q clean apt.conf.buildd +# Update wanna-build dump +echo "Update wanan-build database dump" +/org/ftp.debian.org/scripts/nfu/get-w-b-db + echo "Finally, all is done, compressing logfile" exec > /dev/null 2>&1 diff --git a/scripts/nfu/get-w-b-db b/scripts/nfu/get-w-b-db new file mode 100755 index 00000000..48d2c5f8 --- /dev/null +++ b/scripts/nfu/get-w-b-db @@ -0,0 +1,20 @@ +#!/bin/bash + +# list of architectures taken from +# http://buildd.debian.org/stats/ + +# For debugging, you can override the path using +# the WB_DB_DIR enviroment variable +if [ -z "$WB_DB_DIR" ] +then + WB_DB_DIR=/org/ftp.debian.org/scripts/nfu +fi + +cd $WB_DB_DIR || { echo "Failed to cd to $WB_DB_DIR" ; exit 1 ;} + +for arch in alpha amd64 arm armel hppa i386 ia64 m68k mips mipsel powerpc s390 sparc +do + rm -f $arch-all.txt + echo "Getting $arch-all.txt" + wget -q http://buildd.debian.org/stats/$arch-all.txt +done