summaryrefslogtreecommitdiff
path: root/cron-jobs/ftpdir-cleanup
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-06-20 17:29:40 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-06-20 17:29:40 +0200
commit5034b4e644c55631dfd5c88b491873389fc52e50 (patch)
tree2f0ae9e1c49be91791a17cea3fac51c5cde2d79d /cron-jobs/ftpdir-cleanup
parent56363d7e1c3ba52ec5ff4c59c1c8c904b3384fe7 (diff)
Replace PKGPOOL_DIR by a function call
The package pool dir depends on the host; so we solve this similar to get_repos_for_host() Note: There is no "os" subdir for the package pool.
Diffstat (limited to 'cron-jobs/ftpdir-cleanup')
-rwxr-xr-xcron-jobs/ftpdir-cleanup2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
index a278341..2e23440 100755
--- a/cron-jobs/ftpdir-cleanup
+++ b/cron-jobs/ftpdir-cleanup
@@ -36,7 +36,7 @@ done
to_cleanup=""
for _arch in ${ARCHES[@]}; do
- poolpath="$FTP_BASE/$PKGPOOL_DIR/os/$_arch/"
+ poolpath="$FTP_BASE/$(get_pkgpool_for_host)/$_arch/"
cd $poolpath
for pkg in *$PKGEXT; do
[ -f "$pkg" ] || continue # in case we get a file named "*.pkg.tar.gz"