summaryrefslogtreecommitdiffstats
path: root/cron-jobs/integrity-check
blob: 0a8650c77bc85a210dea14d7fc8f8b183c7fe07a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

. "$(dirname $0)/../db-functions"
. "$(dirname $0)/../config"


if [ $# -ne 2 ]; then
    die "usage: $(basename $0) <repo>[,<repo>,...] <mailto>"
fi

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