summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-06-20 18:16:07 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-06-20 18:16:07 +0200
commit0f705986ab0898a1cd23c3e6d25a118cbd804648 (patch)
tree4c7926e0f5ee10b97a5481cc8620bd7bdee2689d /cron-jobs
parent5034b4e644c55631dfd5c88b491873389fc52e50 (diff)
downloaddbscripts-0f705986ab0898a1cd23c3e6d25a118cbd804648.tar.gz
dbscripts-0f705986ab0898a1cd23c3e6d25a118cbd804648.tar.xz
ftpdir-cleanup: only search for linked packages in actual repos
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/ftpdir-cleanup4
1 files changed, 3 insertions, 1 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
index 2e23440..66733f0 100755
--- a/cron-jobs/ftpdir-cleanup
+++ b/cron-jobs/ftpdir-cleanup
@@ -30,8 +30,10 @@ trap ctrl_c 2
#adjust the nice level to run at a lower priority
/usr/bin/renice +10 -p $$ > /dev/null
+repopaths=''
for repo in $repos; do
$(dirname $0)/../misc-scripts/ftpdir-cleanup $repo
+ repopaths="${repopaths} ${FTP_BASE}/${repo}/os/"
done
to_cleanup=""
@@ -40,7 +42,7 @@ for _arch in ${ARCHES[@]}; do
cd $poolpath
for pkg in *$PKGEXT; do
[ -f "$pkg" ] || continue # in case we get a file named "*.pkg.tar.gz"
- LINKS="$(/usr/bin/find $FTP_BASE -type l -name "$pkg" 2>/dev/null)"
+ LINKS="$(/usr/bin/find $repopaths -type l -name "$pkg" 2>/dev/null)"
if [ -z "$LINKS" ]; then
to_cleanup="$to_cleanup $poolpath/$pkg"
fi