################################################################################
-echo "Creating pre-weekly-cron-job backup of projectb database..."
-pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
+# Clean out incoming
-################################################################################
-
-# temporary hack to work around the lack of an apt-utils & python-apt package
-export PYTHONPATH=$PYTHONPATH:/org/ftp.debian.org/scripts/apt/build/bin/
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/org/ftp.debian.org/scripts/apt/build/bin/
-export PATH=$PATH:/org/ftp.debian.org/scripts/apt/build/bin/
+shania
-cd $masterdir
-shania -v
-shania -v -m -i $incoming
+# Purge empty directories
-# TODO: weekly postins to d-c (?), backup of report (?), backup of changes.tgz (?)
+if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then
+ find $ftpdir/pool/ -type d -empty | xargs rmdir;
+fi
-################################################################################
+# Clean up apt-ftparchive's databases
-echo "Creating post-weekly-cron-job backup of projectb database..."
-pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
+apt-ftparchive clean apt.conf
################################################################################