chiark / gitweb /
wip suppression fetching for Debian
[autopkgtest.git] / hosts / magrathea / update-suppressions
1 #!/bin/sh
2
3 set -e
4
5 cd ${0%/*}
6
7 echo 'fetching'
8 curl -s -S -k -o webpage "$url"
9
10 echo 'grepping'
11 perl -ne '
12     print "$1\n" or die $! if
13      m,"https://bugs.launchpad.net/ubuntu/\+source/([-+.0-9a-z]+)/\+bug/\d+",
14 ' <webpage >suppressions.new
15
16 nl -ba suppressions.new
17
18 if ! test -s suppressions.new;
19 then
20         echo >&2 'NO SUPPRESSIONS - PROBABLY WENT WRONG
21
22 webpage:'
23         cat webpage
24 fi
25
26 echo 'uploading'
27
28 mv suppressions.new suppressions
29 RSYNC_RSH=ssh rsync suppressions cadmium.buildd:adt-play/.
30
31 echo 'done.'