]> git.decadent.org.uk Git - dak.git/blobdiff - cron.weekly
Add new top level directories
[dak.git] / cron.weekly
index 54d68b94309630b180372c168023fdb997d964a0..8357d2ee8309fbbbbc52e582f8221d7ad158de02 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Run once a week via cron, out of troup's crontab.
+# Run once a week via cron, out of katie's crontab.
 
 set -e
 export SCRIPTVARS=/org/ftp.debian.org/katie/vars
@@ -8,18 +8,16 @@ export SCRIPTVARS=/org/ftp.debian.org/katie/vars
 
 ################################################################################
 
-# Clean out incoming
-
-shania
-
 # Purge empty directories
 
-if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then 
-   find $ftpdir/pool/ -type d -empty | xargs rmdir; 
+if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then
+   find $ftpdir/pool/ -type d -empty | xargs rmdir;
 fi
 
 # Clean up apt-ftparchive's databases
 
-apt-ftparchive clean apt.conf
+cd $masterdir
+apt-ftparchive -q clean apt.conf
+apt-ftparchive -q clean apt.conf.buildd
 
 ################################################################################