Dpkg::Vendor::Debian: Only enable LFS when time64 is enabled for glibc
[dpkg.git] / debian / dselect.postrm
blob88c42c3e287fc213a2ba3f19bf8c684b007169c2
1 #!/bin/sh
2 # See deb-postrm(5).
4 set -e
6 # Remove dselect methods state.
7 purge_state() {
8 admindir=${DPKG_ADMINDIR:-/var/lib/dpkg}
10 rm -f $admindir/cmethopt 2>/dev/null
11 for method in file ftp mnt media; do
12 rm -rf $admindir/methods/$method/* 2>/dev/null
13 done
16 case "$1" in
17 remove)
19 purge)
20 purge_state
22 upgrade)
24 failed-upgrade|disappear|abort-install|abort-upgrade)
27 echo "$0 called with unknown argument '$1'" 1>&2
28 exit 1
30 esac
32 #DEBHELPER#
34 exit 0