From 5ee4a452a6baa22e8d08ac3137e617e81cd96890 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 2 Nov 2012 10:55:13 +0100 Subject: /debian/itzks-systems-config.postrm: Undo dpkg diversion. --- debian/itzks-systems-common.postrm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 debian/itzks-systems-common.postrm (limited to 'debian/itzks-systems-common.postrm') diff --git a/debian/itzks-systems-common.postrm b/debian/itzks-systems-common.postrm new file mode 100755 index 0000000..6cbc63a --- /dev/null +++ b/debian/itzks-systems-common.postrm @@ -0,0 +1,38 @@ +#! /bin/sh +# postrm script for itzks-systems-common.postrm +# +# see: dh_installdeb(1) +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/share/doc/packaging-manual/ + +set -e + + +case "$1" in + purge|remove) + if ! dpkg-divert --list | grep passwd.gnu 1>/dev/null 2>/dev/null; then + dpkg-divert --package itzks-systems-common --remove /usr/bin/passwd + fi + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 \ No newline at end of file -- cgit v1.2.3