blob: 2179e65d0685c5b0eb6a37be09e50e8307a8dc0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
set -e
set -x
DIR=$(mktemp -d)
GPG_HOME="$DIR/gnupg"
gpg=(gpg --homedir "$GPG_HOME" --batch --quiet --with-colons)
gpg1=(gpg1 --homedir "$GPG_HOME" --batch --quiet --with-colons)
mkdir "$GPG_HOME"
chmod 700 "$GPG_HOME"
cat $(ls /usr/share/keyrings/debian-archive-*.gpg \
| grep -vE 'debian-archive-bookworm-stable.gpg|debian-archive-keyring.gpg') \
| "${gpg1[@]}" --import
"${gpg1[@]}" --list-keys
"${gpg[@]}" --list-keys > "$DIR/key.list.before"
migrate-pubring-from-classic-gpg "$GPG_HOME"
"${gpg[@]}" --list-keys > "$DIR/key.list.after"
diff -u "$DIR/key.list.before" "$DIR/key.list.after"
|