| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
# Remove keys from trusted.gpg -- now in trusted.gpg.d/ |
| 6 |
# (Adapted code from postinst from debian-archive-keyring) |
| 7 |
if [ "$1" = 'configure' -a -n "$2" ]; then |
| 8 |
if which gpg > /dev/null && which apt-key > /dev/null; then |
| 9 |
TRUSTEDFILE='/etc/apt/trusted.gpg' |
| 10 |
eval $(apt-config shell TRUSTEDFILE Apt::GPGV::TrustedKeyring) |
| 11 |
eval $(apt-config shell TRUSTEDFILE Dir::Etc::Trusted/f) |
| 12 |
if [ -e "$TRUSTEDFILE" ]; then |
| 13 |
apt-key --keyring "$TRUSTEDFILE" del %KEY_ID% > /dev/null 2>&1 || : |
| 14 |
fi |
| 15 |
fi |
| 16 |
fi |
| 17 |
|
| 18 |
#DEBHELPER# |