summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Siraut <csiraut@entrouvert.com>2018-07-13 09:54:38 (GMT)
committerChristophe Siraut <csiraut@entrouvert.com>2018-07-13 09:54:38 (GMT)
commit1475834bbfbefe11d7431754eaef1d8a09d84e2a (patch)
treeba15b61fbed570320e987383ee731564f4262733
parent85b8c96546e3fc80fb0fd5e2b2b2870c93db37a5 (diff)
downloadentrouvert-archive-1475834bbfbefe11d7431754eaef1d8a09d84e2a.zip
entrouvert-archive-1475834bbfbefe11d7431754eaef1d8a09d84e2a.tar.gz
entrouvert-archive-1475834bbfbefe11d7431754eaef1d8a09d84e2a.tar.bz2
debian: simplify entrouvert-archive-keyring.postrm
-rw-r--r--debian-jessie/entrouvert-archive-keyring.postrm38
1 files changed, 4 insertions, 34 deletions
diff --git a/debian-jessie/entrouvert-archive-keyring.postrm b/debian-jessie/entrouvert-archive-keyring.postrm
index b5f10eb..4cf83dc 100644
--- a/debian-jessie/entrouvert-archive-keyring.postrm
+++ b/debian-jessie/entrouvert-archive-keyring.postrm
@@ -1,41 +1,11 @@
#!/bin/sh
-# postrm script for test
-#
-# see: dh_installdeb(1)
set -e
-# summary of how this script can be called:
-# * <postrm> `remove'
-# * <postrm> `purge'
-# * <old-postrm> `upgrade' <new-version>
-# * <new-postrm> `failed-upgrade' <old-version>
-# * <new-postrm> `abort-install'
-# * <new-postrm> `abort-install' <old-version>
-# * <new-postrm> `abort-upgrade' <old-version>
-# * <disappearer's-postrm> `disappear' <overwriter>
-# <overwriter-version>
-# for details, see https://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
- purge|remove)
- keyring=/etc/apt/trusted.gpg.d/entrouvert-archive.gpg
- test -f $keyring && rm $keyring
- ;;
- upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
- ;;
-
- *)
- echo "postrm called with unknown argument \`$1'" >&2
- exit 1
- ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
+if [ "$1" = "purge" ]
+then
+ rm -f /etc/apt/trusted.gpg.d/entrouvert-archive.gpg
+fi
#DEBHELPER#
-exit 0