diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2014-06-22 17:10:55 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-06-22 17:15:00 +0200 |
commit | 0c2f8a56ca10b0ac05eba3f2ef5c2041f43a4232 (patch) | |
tree | 315426370e1a845140eae8c3439f01211ec02d1d /ubuntu/maverick/metapackages/trinity-keyring/debian/postinst | |
parent | ca6bbdcf85658a61f8c0a6a8132310bb53809c2c (diff) | |
download | tde-packaging-0c2f8a56ca10b0ac05eba3f2ef5c2041f43a4232.tar.gz tde-packaging-0c2f8a56ca10b0ac05eba3f2ef5c2041f43a4232.zip |
Added removal of old GPG key in trinity-keyring on Debian and Ubuntu
Cleanup build rules
Diffstat (limited to 'ubuntu/maverick/metapackages/trinity-keyring/debian/postinst')
-rw-r--r-- | ubuntu/maverick/metapackages/trinity-keyring/debian/postinst | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/ubuntu/maverick/metapackages/trinity-keyring/debian/postinst b/ubuntu/maverick/metapackages/trinity-keyring/debian/postinst index fa0073eba..1da9ae7ae 100644 --- a/ubuntu/maverick/metapackages/trinity-keyring/debian/postinst +++ b/ubuntu/maverick/metapackages/trinity-keyring/debian/postinst @@ -1,5 +1,31 @@ #!/bin/sh +# postinst script for trinity-keyring -if [ -x /usr/bin/apt-key ]; then - /usr/bin/apt-key add /usr/share/keyrings/trinity-keyring.gpg -fi +set -e + +case "$1" in + configure) + if [ -x /usr/bin/apt-key ]; then + # Key F5CFC95C (2014.06.08) + apt-key add /usr/share/keyrings/trinity-keyring.gpg > /dev/null + + # Key 2B8638D0 (2010.06.15) + apt-key del 2B8638D0 2> /dev/null || true + fi + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 |