diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2018-09-25 02:18:01 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2018-09-25 02:25:59 -0400 |
commit | fa2fbd5d0fd120ec6774f6b28bea4dfaf456ab00 (patch) | |
tree | 773af889d1f55828cd615a2303049c6eb5a10ea3 | |
parent | 42b999d0510e55f302d8c871bbba4d87d38eb6a1 (diff) |
make_repo_torrents: Look directly in /pool/, rather than searching all repos
-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) |