diff -Nru sks-1.1.5/debian/changelog sks-1.1.5/debian/changelog --- sks-1.1.5/debian/changelog 2014-10-15 15:10:56.000000000 +0000 +++ sks-1.1.5/debian/changelog 2014-11-04 11:12:20.000000000 +0000 @@ -1,3 +1,9 @@ +sks (1.1.5-3) unstable; urgency=medium + + * fix postrm if old /var/backup does not exist (closes: #718530) + + -- Christoph Martin Tue, 04 Nov 2014 12:12:10 +0100 + sks (1.1.5-2) unstable; urgency=low * use start-stop-daemon with --background and --no-close instead of with diff -Nru sks-1.1.5/debian/sks.init sks-1.1.5/debian/sks.init --- sks-1.1.5/debian/sks.init 2014-10-15 13:53:31.000000000 +0000 +++ sks-1.1.5/debian/sks.init 2014-10-17 15:09:38.000000000 +0000 @@ -77,8 +77,8 @@ start-stop-daemon --start --quiet --oknodo \ --chuid debian-sks:debian-sks \ --make-pidfile \ - --background \ - --no-close \ + --background \ + --no-close \ --pidfile $SKSDBPID \ --exec $DAEMON -- db @@ -87,8 +87,8 @@ start-stop-daemon --start --quiet --oknodo \ --chuid debian-sks:debian-sks \ --make-pidfile \ - --background \ - --no-close \ + --background \ + --no-close \ --pidfile $SKSRECONPID \ --exec $DAEMON -- recon diff -Nru sks-1.1.5/debian/sks.postrm sks-1.1.5/debian/sks.postrm --- sks-1.1.5/debian/sks.postrm 2014-10-15 14:25:24.000000000 +0000 +++ sks-1.1.5/debian/sks.postrm 2014-11-04 10:44:53.000000000 +0000 @@ -3,7 +3,7 @@ if [ "$1" = "purge" ]; then # logs, db and backup have to be removed according to policy. rm -rf /var/log/sks /var/lib/sks /var/backup/sks /var/backups/sks - rmdir --ignore-fail-on-non-empty /var/backup + [ -d /var/backup ] && rmdir --ignore-fail-on-non-empty /var/backup fi #DEBHELPER#