summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-09-18 23:33:26 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-18 23:33:26 +0200
commit496fc1c7f54132410af5fd84bfe10b8e68d02a1e (patch)
treed36f8b9261896fed681321c70fd2792909ae4b69
parent85eee9a95d2fcbdce483b94202b489d07d258690 (diff)
downloaddbscripts-496fc1c7f54132410af5fd84bfe10b8e68d02a1e.tar.gz
dbscripts-496fc1c7f54132410af5fd84bfe10b8e68d02a1e.tar.xz
integrity-check: Loop over arches
THis simplifies the command line and we do both anyway Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xcron-jobs/integrity-check12
1 files changed, 7 insertions, 5 deletions
diff --git a/cron-jobs/integrity-check b/cron-jobs/integrity-check
index b3185ec..8f23129 100755
--- a/cron-jobs/integrity-check
+++ b/cron-jobs/integrity-check
@@ -3,11 +3,13 @@
basedir="$(dirname $0)"
if [ $# -ne 3 ]; then
- echo "usage: $(basename $0) <repo>[,<repo>,...] <arch> <mailto>" >&2
+ echo "usage: $(basename $0) <repo>[,<repo>,...] <mailto>" >&2
exit 1
fi
-$basedir/check_archlinux/check_packages.py \
- --repos="$1" \
- --abs-tree="/srv/abs/rsync/$2,/srv/abs/rsync/any" --arch="$2" |\
- $basedir/devlist-mailer "Integrity Check $2: $1" "$3"
+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