summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-21 22:43:23 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-02-21 22:43:23 +0100
commitdb00ce3c343cf6eea9cb512f7bba9ea7904526b8 (patch)
treee07759078312e2468c48639dc58d9d58a563192a
parent299295b33a310087f631f55406795a6be9411e8b (diff)
downloaddbscripts-db00ce3c343cf6eea9cb512f7bba9ea7904526b8.tar.gz
dbscripts-db00ce3c343cf6eea9cb512f7bba9ea7904526b8.tar.xz
Add a script to simplify the integ check call
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xcron-jobs/integrity-check14
1 files changed, 14 insertions, 0 deletions
diff --git a/cron-jobs/integrity-check b/cron-jobs/integrity-check
new file mode 100755
index 0000000..c3b016c
--- /dev/null
+++ b/cron-jobs/integrity-check
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+basedir="$(dirname $0)"
+
+if [ $# -ne 3 ]; then
+ echo "usage: $(basename $0) <repo>[,<repo>,...] <arch> <mailto>" >2
+ exit 1
+fi
+
+$basedir/cron-jobs/check_archlinux/check_packages.py \
+ --repos="$1" \
+ --abs-tree="/srv/abs/rsync/$2" --arch="$1" |\
+ $basedir/cron-jobs/devlist-mailer \
+ "Integrity Check $2: $1" "$3"