diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:58:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:58:51 +0000 |
commit | e52abbeea0a0fd87f2df577263fdfcb89da6c1b0 (patch) | |
tree | 27a6f3ded04c521f55558166ee9322076339ca2b /debian/dselect.postrm | |
parent | Adding upstream version 1.21.22. (diff) | |
download | dpkg-e52abbeea0a0fd87f2df577263fdfcb89da6c1b0.tar.xz dpkg-e52abbeea0a0fd87f2df577263fdfcb89da6c1b0.zip |
Adding debian version 1.21.22.debian/1.21.22debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/dselect.postrm')
-rwxr-xr-x | debian/dselect.postrm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/dselect.postrm b/debian/dselect.postrm new file mode 100755 index 0000000..8fd1191 --- /dev/null +++ b/debian/dselect.postrm @@ -0,0 +1,34 @@ +#!/bin/sh +# See deb-postrm(5). + +set -e + +# Remove dselect methods state. +purge_state() { + admindir=${DPKG_ADMINDIR:-/var/lib/dpkg} + + rm -f $admindir/cmethopt 2>/dev/null + for method in disk ftp mnt media; do + rm -rf $admindir/methods/$method/* 2>/dev/null + done +} + +case "$1" in +remove) + ;; +purge) + purge_state + ;; +upgrade) + ;; +failed-upgrade|disappear|abort-install|abort-upgrade) + ;; +*) + echo "$0 called with unknown argument '$1'" 1>&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |