summaryrefslogtreecommitdiff
path: root/cron-jobs/integrity-check
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-12-09 08:28:39 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-12-09 08:28:39 +0100
commit10116f6f0d5a0fe36b8582ed23f193683e4e5523 (patch)
treede41928e1dfcf7f906be298dd87fedf40b1f0ec9 /cron-jobs/integrity-check
parentc9d72df9e6cc51155306b30b2f23b2e4f58fdc05 (diff)
Call integrity-check with specific repo list for each architecture
Diffstat (limited to 'cron-jobs/integrity-check')
-rwxr-xr-xcron-jobs/integrity-check36
1 files changed, 26 insertions, 10 deletions
diff --git a/cron-jobs/integrity-check b/cron-jobs/integrity-check
index 0a8650c..d4f9694 100755
--- a/cron-jobs/integrity-check
+++ b/cron-jobs/integrity-check
@@ -1,16 +1,32 @@
#!/bin/bash
-. "$(dirname $0)/../db-functions"
-. "$(dirname $0)/../config"
+dirname="$(dirname $0)"
+. "${dirname}/../db-functions"
+. "${dirname}/../config"
-if [ $# -ne 2 ]; then
- die "usage: $(basename $0) <repo>[,<repo>,...] <mailto>"
+script_lock
+
+if [ $# -ne 1 ]; then
+ die "usage: $(basename $0) <mailto>"
fi
+mailto=$1
+
+check() {
+ ${dirname}/check_archlinux/check_packages.py \
+ --repos="${repos}" \
+ --abs-tree="/srv/abs/rsync/${arch},/srv/abs/rsync/any" \
+ --repo-dir="${FTP_BASE}" \
+ --arch="${arch}" \
+ 2>&1 | ${dirname}/devlist-mailer "Integrity Check ${arch}: ${repos}" "${mailto}"
+}
+
+repos='core,extra,community'
+arch='i686'
+check
+
+repos='core,extra,community,multilib'
+arch='x86_64'
+check
-for arch in ${ARCHES[@]}; do
- $(dirname $0)/check_archlinux/check_packages.py \
- --repos="$1" \
- --abs-tree="/srv/abs/rsync/$arch,/srv/abs/rsync/any" --arch="$arch" |\
- $(dirname $0)/devlist-mailer "Integrity Check $arch: $1" "$2"
-done
+script_unlock