You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-packaging/ubuntu/maverick/metapackages/trinity-keyring/debian/preinst

30 lines
664 B

#! /bin/sh
# preinst script for trinity-keyring
set -e
case "$1" in
install|upgrade)
if [ ! -f /etc/apt/trusted.gpg.d/trinity-keyring.gpg ] &&
[ -f /etc/apt/trusted.gpg ]; then
# Remove key F5CFC95C (2014.06.08) from apt keyring
apt-key --keyring /etc/apt/trusted.gpg del F5CFC95C 2> /dev/null || true
# Remove key 2B8638D0 (2010.06.15) from apt keyring
apt-key --keyring /etc/apt/trusted.gpg del 2B8638D0 2> /dev/null || true
fi
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0