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

basedir="$(dirname $0)"

if [ $# -ne 2 ]; 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" "$2"
done