]> git.decadent.org.uk Git - dak.git/commitdiff
Get wanna-build-database in cron.weekly
authorJoachim Breitner <mail@joachim-breitner.de>
Tue, 5 Aug 2008 15:43:15 +0000 (12:43 -0300)
committerJoachim Breitner <mail@joachim-breitner.de>
Tue, 5 Aug 2008 15:43:15 +0000 (12:43 -0300)
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.

ChangeLog
config/debian/cron.weekly
scripts/nfu/get-w-b-db [new file with mode: 0755]

index d8619341d86baee42d4abca29b835cede30ed0f2..74879a3bd06dd467b08d606423efc872081d9271 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2008-08-05  Joachim Breitner <nomeata@debian.org>
+
+       * 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 <mhy@debian.org>
 
        * dak/process_new.py: Apply jvw's patch so that process_new shows
index 39224ce8865db2668222a90e4a7176433f62de8b..9a4c56f141f57d466652ca462199d56feb1420f2 100755 (executable)
@@ -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 (executable)
index 0000000..48d2c5f
--- /dev/null
@@ -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