File: keyids-complete.t

package info (click to toggle)
debian-keyring 2013.04.21
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 63,116 kB
  • sloc: sh: 510; perl: 256; makefile: 108
file content (19 lines) | stat: -rwxr-xr-x 367 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Makes sure every key in debian-keyring-gpg has an entry in the
# keyids mapping file.
set -e

fail=0

for keyring in debian-keyring-gpg debian-nonupload-gpg; do
    cd $keyring
    for key in 0x*; do
        if ! grep -q "^$key " ../keyids; then
	    echo "$keyring: $key is not in keyids file."
	    fail=1
        fi
    done
    cd ..
done

exit $fail