X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=cron.weekly-non-US;h=0873e752773bf1b6f092daf0a23d88ae367edc5d;hb=fb3d44c5e9b4a010f56cffd8fd5e35d6221805f9;hp=c3d7b2810d1d900e80a0136d0e22fa0b0812938a;hpb=444b254ec48081a256107532a0a4ea7d42321407;p=dak.git diff --git a/cron.weekly-non-US b/cron.weekly-non-US index c3d7b281..0873e752 100755 --- a/cron.weekly-non-US +++ b/cron.weekly-non-US @@ -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/non-us.debian.org/katie/vars-non-US @@ -8,18 +8,15 @@ export SCRIPTVARS=/org/non-us.debian.org/katie/vars-non-US ################################################################################ -# 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-non-US +cd $masterdir +apt-ftparchive -q clean apt.conf-non-US ################################################################################