summaryrefslogtreecommitdiff
path: root/cron-jobs/ftpdir-cleanup
diff options
context:
space:
mode:
authorFrancois Charette <francois@archlinux.org>2009-07-21 11:38:09 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-07-21 10:09:33 -0700
commit820452a93f68c05ac1083d56d9e560903d8ae1cf (patch)
treeb65b6e6e7367a7f8043f779ff196c16a4fba1e95 /cron-jobs/ftpdir-cleanup
parent8ea36dcd83222e960086bbcd114ca538d89db09c (diff)
Refactor ftpdir-cleanup to handle all arches
This may look like a rather large patch, but the changes are mostly a reshuffling of the code to loop over all arches first, and then handle the arch-indep packages. The cronjob has been changed accordingly. Added new category DELETESYMLINKS, which are deleted instead of being moved to package-cleanup. I have also fixed the arch-specific issue with the ftppath, using parameters in config instead. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs/ftpdir-cleanup')
-rwxr-xr-xcron-jobs/ftpdir-cleanup7
1 files changed, 2 insertions, 5 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
index dfa968e..38c7fcd 100755
--- a/cron-jobs/ftpdir-cleanup
+++ b/cron-jobs/ftpdir-cleanup
@@ -1,13 +1,12 @@
#!/bin/bash
repos="core extra testing community"
-arches="i686 x86_64"
LOCKFILE="/tmp/.ftpdircleanup.lock"
cleanup () {
rm -f "$LOCKFILE"
- exit 0
+ exit 0
}
ctrl_c() {
@@ -32,9 +31,7 @@ trap ctrl_c 2
. $(dirname $0)/../config
for repo in $repos; do
- for arch in $arches; do
- $(dirname $0)/../misc-scripts/ftpdir-cleanup $repo $arch $CLEANUP_DESTDIR
- done
+ $(dirname $0)/../misc-scripts/ftpdir-cleanup $repo $CLEANUP_DESTDIR
done
cleanup