]> git.decadent.org.uk Git - dak.git/blob - scripts/debian/dm-monitor
changes for DM support
[dak.git] / scripts / debian / dm-monitor
1 #!/bin/sh
2
3 echo "Known debian maintainers:"
4
5 psql --html projectb <<EOF
6   SELECT uid.uid, uid.name, f.fingerprint
7     FROM uid LEFT OUTER JOIN fingerprint f ON (uid.id = f.uid) 
8    WHERE uid.uid LIKE 'dm:%'
9 ORDER BY uid.uid;
10 EOF
11
12 echo "Packages debian maintainers may update:"
13
14 psql --html projectb <<EOF
15   SELECT s.source, s.version, u.uid
16     FROM src_uploaders su JOIN source s ON (su.source = s.id) 
17          JOIN src_associations sa ON (s.id = sa.source)
18          JOIN maintainer m ON (su.maintainer = m.id)
19          JOIN uid u ON (m.name LIKE u.name || ' <%>')
20    WHERE u.uid LIKE 'dm:%' AND sa.suite = 5
21 ORDER BY u.uid, s.source, s.version;
22 EOF
23
24 echo "Source packages in the pool uploaded by debian maintainers:"
25
26 psql --html projectb <<EOF
27   SELECT s.source, s.version, s.install_date, u.uid
28     FROM source s JOIN fingerprint f ON (s.sig_fpr = f.id) 
29          JOIN uid u ON (f.uid = u.id)
30    WHERE u.uid LIKE 'dm:%'
31 ORDER BY u.uid, s.source, s.version;
32 EOF
33
34 echo "Binary packages in the pool uploaded by debian maintainers:"
35
36 psql --html projectb <<EOF
37   SELECT b.package, b.version, a.arch_string AS arch, u.uid
38     FROM binaries b JOIN architecture a ON (b.architecture = a.id)
39          JOIN fingerprint f ON (b.sig_fpr = f.id) 
40          JOIN uid u ON (f.uid = u.id)
41    WHERE u.uid LIKE 'dm:%'
42 ORDER BY u.uid, b.package, b.version;
43 EOF
44
45 echo "Recorded Uploaders:"
46
47 psql --html projectb <<EOF
48   SELECT s.source, s.version, m.name
49     FROM src_uploaders su JOIN source s ON (su.source = s.id) 
50          JOIN maintainer m ON (su.maintainer = m.id)
51 ORDER BY m.name, s.source, s.version;
52 EOF
53
54 echo "Keys without a recorded uid:"
55
56 psql --html projectb <<EOF
57   SELECT *
58     FROM fingerprint f
59    WHERE f.uid IS NULL;
60 EOF
61