From 1475834bbfbefe11d7431754eaef1d8a09d84e2a Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Fri, 13 Jul 2018 11:54:38 +0200 Subject: [PATCH] debian: simplify entrouvert-archive-keyring.postrm --- .../entrouvert-archive-keyring.postrm | 38 ++----------------- 1 file 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: -# * `remove' -# * `purge' -# * `upgrade' -# * `failed-upgrade' -# * `abort-install' -# * `abort-install' -# * `abort-upgrade' -# * `disappear' -# -# 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