From 5a8be17a951e4b7f1c981aa96a8d9b0010713a4b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 19 Oct 2018 12:10:46 +0200 Subject: find-urgent-bootstrap-issues new --- find-urgent-bootstrap-issues | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 find-urgent-bootstrap-issues (limited to 'find-urgent-bootstrap-issues') 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 -- cgit v1.2.3