summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-19 12:10:46 +0200
committerErich Eckner <git@eckner.net>2018-10-19 12:10:46 +0200
commit5a8be17a951e4b7f1c981aa96a8d9b0010713a4b (patch)
treeafb660e1410dfb221a8c396d37e0dc4bf91506b5
parent80174ad842ddcdef900fc00aa2b717ab818b61cc (diff)
downloaddevops-5a8be17a951e4b7f1c981aa96a8d9b0010713a4b.tar.xz
find-urgent-bootstrap-issues new
-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