X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Fpostrm;h=9b3c29c7809c5acb039f88466de2c8cb79be9500;hb=556012bf94c15c5f90df37bca737f972a04223d2;hp=ae65ee5fd868a2d5235f0b247ec2036ff737be41;hpb=b45b3e496f22983ce5ddcb9ac8b44dbab23cfe48;p=ca-certificates.git diff --git a/debian/postrm b/debian/postrm index ae65ee5..9b3c29c 100644 --- a/debian/postrm +++ b/debian/postrm @@ -16,7 +16,19 @@ set -e # * `disappear' overwrit>r> # for details, see /usr/share/doc/packaging-manual/ +# Clear the debconf database as early as possible and signal debconf that +# we are done with it. +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge + db_stop +fi + remove_dangling_symlinks() { + if ! [ -d /etc/ssl/certs ] + then + return + fi echo -n "Removing dangling symlinks from /etc/ssl/certs... " find /etc/ssl/certs -type l -print | while read h do @@ -41,10 +53,6 @@ case "$1" in [ -d /etc/ssl ] && rmdir --ignore-fail-on-non-empty /etc/ssl rm -f /etc/ca-certificates.conf* - if test -e /usr/share/debconf/confmodule; then - . /usr/share/debconf/confmodule - db_purge - fi ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)