diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-01-30 12:07:30 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-01-30 12:07:30 +0100 |
commit | d9aad61303816aa7a4b1ba950856b30368acb968 (patch) | |
tree | 9de9f20f2e88e9e6d0bbe9335f6e763cbf146be6 /cron-jobs | |
parent | 7222a50e44f815fd2ba17a9a94efd3cc9fa4bcd7 (diff) | |
download | dbscripts-d9aad61303816aa7a4b1ba950856b30368acb968.tar.gz dbscripts-d9aad61303816aa7a4b1ba950856b30368acb968.tar.xz |
Make sure to only remove package files from the cleanup dirs
Diffstat (limited to 'cron-jobs')
-rwxr-xr-x | cron-jobs/ftpdir-cleanup | 2 | ||||
-rwxr-xr-x | cron-jobs/sourceballs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup index bd2d340..09e8a49 100755 --- a/cron-jobs/ftpdir-cleanup +++ b/cron-jobs/ftpdir-cleanup @@ -95,7 +95,7 @@ for repo in ${PKGREPOS[@]}; do fi done -old_pkgs=($(find ${CLEANUP_DESTDIR} -type f -mtime +${CLEANUP_KEEP} -printf '%f\n')) +old_pkgs=($(find ${CLEANUP_DESTDIR} -type f -name "*${PKGEXT}" -mtime +${CLEANUP_KEEP} -printf '%f\n')) if [ ${#old_pkgs[@]} -ge 1 ]; then msg "Removing old packages from the cleanup directory..." for old_pkg in ${old_pkgs[@]}; do diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs index 4048e2f..b55de05 100755 --- a/cron-jobs/sourceballs +++ b/cron-jobs/sourceballs @@ -132,7 +132,7 @@ if [ ${#old_pkgs[@]} -ge 1 ]; then done fi -old_pkgs=($(find ${SOURCE_CLEANUP_DESTDIR} -type f -mtime +${SOURCE_CLEANUP_KEEP} -printf '%f\n')) +old_pkgs=($(find ${SOURCE_CLEANUP_DESTDIR} -type f -name "*${SRCEXT}" -mtime +${SOURCE_CLEANUP_KEEP} -printf '%f\n')) if [ ${#old_pkgs[@]} -ge 1 ]; then msg "Removing old source packages from the cleanup directory..." for old_pkg in ${old_pkgs[@]}; do |