X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=cron.weekly;h=4677a14754395113e72f773f9db180a9a79acabb;hb=0cc5067aacecf106c154b4780f4b724a7d0e875b;hp=bafca02ecdbc9905429421852112fbff09d945e8;hpb=e8eacb00ee41d7ab974ba913fff40e5c082b8e1a;p=dak.git diff --git a/cron.weekly b/cron.weekly index bafca02e..4677a147 100755 --- a/cron.weekly +++ b/cron.weekly @@ -13,14 +13,19 @@ pg_dump projectb > /org/ftp.debian.org/backup/dump_$(date +%Y.%m.%d-%H:%M:%S) ################################################################################ -# 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/ - -cd $masterdir -shania -v -shania -v -m -i $incoming +# Clean out incoming + +shania + +# Purge empty directories + +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 # TODO: weekly postins to d-c (?), backup of report (?), backup of changes.tgz (?)