Debian Codegraph @

debian/debian-archive-keyring.postinst

raw
1 #!/bin/sh
2
3 set -e
4
5 if [ "$1" = 'configure' -a -n "$2" ]; then
6 # remove keys from the trusted.gpg file as they are now shipped in fragment files in trusted.gpg.d
7 if dpkg --compare-versions "$2" 'lt' "2012.1" && which gpg > /dev/null && which apt-key > /dev/null; then
8 TRUSTEDFILE='/etc/apt/trusted.gpg'
9 eval $(apt-config shell TRUSTEDFILE Apt::GPGV::TrustedKeyring)
10 eval $(apt-config shell TRUSTEDFILE Dir::Etc::Trusted/f)
11 if [ -e "$TRUSTEDFILE" ]; then
12 for KEY in F42584E6 55BE302B 6D849617 B98321F9 473041FA 46925553 65FFB764; do
13 apt-key --keyring "$TRUSTEDFILE" del $KEY > /dev/null 2>&1 || :
14 done
15 fi
16 fi
17 fi
18
19 #DEBHELPER#