From 10116f6f0d5a0fe36b8582ed23f193683e4e5523 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 9 Dec 2010 08:28:39 +0100 Subject: Call integrity-check with specific repo list for each architecture --- cron-jobs/integrity-check | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) (limited to 'cron-jobs/integrity-check') 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) [,,...] " +script_lock + +if [ $# -ne 1 ]; then + die "usage: $(basename $0) " 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 -- cgit v1.2.3-54-g00ecf