diff options
-rwxr-xr-x | cron-jobs/make_repo_torrents | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cron-jobs/make_repo_torrents b/cron-jobs/make_repo_torrents index dfcdad1..b911471 100755 --- a/cron-jobs/make_repo_torrents +++ b/cron-jobs/make_repo_torrents @@ -32,7 +32,7 @@ cd "${FTP_BASE}/${TORRENTPOOL}" IFS=, # for ${TRACKERS[*]} # Find any packages -for pkgfile in "$FTP_BASE"/*/os/*/*${PKGEXTS}; do +for pkgfile in "$FTP_BASE"/pool/*/*${PKGEXTS}; do # Resolve any symlinks pkgfile=$(readlink -f -- "$pkgfile") @@ -52,7 +52,7 @@ if ! (( $(shuf -e {0..29} | head -1) )); then pkgfile="${torrent##*/}" pkgfile="${torrent%.torrent}" - if ! is_globfile "$FTP_BASE"/*/os/*/"$pkgfile"; then + if ! is_globfile "$FTP_BASE"/pool/*/"$pkgfile"; then rm -f -- "$torrent" fi done < <(find -H . -mtime +365 -name '*.torrent' -type f) |