summaryrefslogtreecommitdiff
path: root/cron-jobs
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-13 12:51:32 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-13 12:51:32 -0300
commitf23d7103fec259ebe2ba796ae7f351dfbda5b705 (patch)
tree2f59c0ae009f570354c35b001dc188a223a62d9d /cron-jobs
parenta032c1fad3e2d57a7a1b7cef65d90ea06a766784 (diff)
Added useful messages
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/repo-sanity-check6
1 files changed, 5 insertions, 1 deletions
diff --git a/cron-jobs/repo-sanity-check b/cron-jobs/repo-sanity-check
index 92b26ae..1ba90a6 100755
--- a/cron-jobs/repo-sanity-check
+++ b/cron-jobs/repo-sanity-check
@@ -6,6 +6,7 @@
# Traverse all repos
for _repo in ${PKGREPOS[@]}; do
+ msg "Cleaning up [${_repo}]"
# Find all pkgnames on this repo's abs
on_abs=($(
@@ -45,7 +46,10 @@ for _repo in ${PKGREPOS[@]}; do
# Remove them from databases, ftpdir-cleanup will take care of the rest
find ${FTP_BASE}/${_repo} -name "*.db.tar.?z" -exec \
- repo-remove {} ${remove[@]} \;
+ repo-remove {} ${remove[@]} >/dev/null 2>&1 \;
+
+ msg2 "Removed the following packages:"
+ plain "$(echo ${remove[@]} | tr ' ' "\n")"
done