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

basedir="$(dirname $0)"

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

for arch in i686 x86_64; do
    $basedir/check_archlinux/check_packages.py \
        --repos="$1" \
        --abs-tree="/srv/abs/rsync/$arch,/srv/abs/rsync/any" --arch="$arch" |\
        $basedir/devlist-mailer "Integrity Check $arch: $1" "$3"
done