Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/find-urgent-bootstrap-issues
blob: 7d5dfe2e53da19b8240db14e6646e10337f7258e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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