summaryrefslogtreecommitdiff
path: root/find-urgent-bootstrap-issues
diff options
context:
space:
mode:
Diffstat (limited to 'find-urgent-bootstrap-issues')
-rwxr-xr-xfind-urgent-bootstrap-issues43
1 files changed, 43 insertions, 0 deletions
diff --git a/find-urgent-bootstrap-issues b/find-urgent-bootstrap-issues
new file mode 100755
index 0000000..7d5dfe2
--- /dev/null
+++ b/find-urgent-bootstrap-issues
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+ssh buildmaster '
+ find /srv/http/build-logs/error/ \
+ -maxdepth 1 \
+ -name "*.i486.*" \
+ -mtime -3 \
+ -exec zgrep "^error: target not found: " {} \; | \
+ cut -d" " -f5 | \
+ sed "s/[<=>].*\$//"
+' | \
+ grep -vxF "$(
+ for db in $(
+ printf 'https://mirror.archlinux32.org/i486/%s/%s.db.tar.gz\n' \
+ core core \
+ extra extra \
+ community community \
+ testing testing \
+ community-testing community-testing \
+ staging staging \
+ community-staging community-staging
+ printf 'http://archlinux32.andreasbaumann.cc/bootstrap/i486/%s.db.tar.gz\n' \
+ bootstrap \
+ staging/bootstrap-staging \
+ community-staging/bootstrap-community-staging \
+ testing/bootstrap-community-testing \
+ core/bootstrap-core \
+ extra/bootstrap-extra \
+ community/bootstrap-community
+ ); do
+ curl -s "$db" | \
+ tar -tz 2>/dev/null
+ done | \
+ sed '
+ s,\(-[^-]\+\)\{2\}/desc$,,
+ t
+ d
+ ' | \
+ sort -u
+ )" | \
+ sort | \
+ uniq -c | \
+ sort -k1n,1