2 # postrm script for apt-dht
4 # see: dh_installdeb(1)
8 # summary of how this script can be called:
11 # * <old-postrm> `upgrade' <new-version>
12 # * <new-postrm> `failed-upgrade' <old-version>
13 # * <new-postrm> `abort-install'
14 # * <new-postrm> `abort-install' <old-version>
15 # * <new-postrm> `abort-upgrade' <old-version>
16 # * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
20 if test "$1" = "purge"; then
22 rm -rf /var/log/apt-dht.log*
24 echo Purging apt-dht cache directory
25 rm -rf /var/cache/apt-dht
27 if id aptdht >/dev/null; then
32 # dh_installdeb will replace this with shell code automatically
33 # generated by other debhelper scripts.