From 12d5b6a10438b5933193b079bb52b2438150ddcb Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Sat, 15 Nov 2008 16:38:07 -0500 Subject: [PATCH 1/1] make sure we clean up /var/lib/monkeysphere during prerm. --- packaging/debian/changelog | 6 ++++++ packaging/debian/monkeysphere.prerm | 2 ++ 2 files changed, 8 insertions(+) diff --git a/packaging/debian/changelog b/packaging/debian/changelog index bed79ea..62f021e 100644 --- a/packaging/debian/changelog +++ b/packaging/debian/changelog @@ -1,3 +1,9 @@ +monkeysphere (0.21-2) unstable; urgency=low + + * actually rmdir /var/lib/monkeysphere-* during prerm if possible. + + -- Daniel Kahn Gillmor Sat, 15 Nov 2008 16:36:57 -0500 + monkeysphere (0.21-1) unstable; urgency=low * New upstream release: diff --git a/packaging/debian/monkeysphere.prerm b/packaging/debian/monkeysphere.prerm index 433a0aa..948bfee 100755 --- a/packaging/debian/monkeysphere.prerm +++ b/packaging/debian/monkeysphere.prerm @@ -9,6 +9,8 @@ VARLIB="/var/lib/monkeysphere" rm -f "$VARLIB"/gnupg-host/gpg.conf rm -f "$VARLIB"/gnupg-authentication/gpg.conf +rmdir --ignore-fail-on-non-empty "$VARLIB"/monkeysphere/gnupg-host || true +rmdir --ignore-fail-on-non-empty "$VARLIB"/monkeysphere/gnupg-authentication || true # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. -- 2.25.1