debian: fix typo in postinst (Debian bug 740325), clean up empty directory

Try to remove the directory /0755 ; if that fails assume it has
something in it to preserve.
This commit is contained in:
David Bremner 2014-03-02 07:36:34 -04:00
parent c35dcb7704
commit 7b0d53a906
2 changed files with 11 additions and 1 deletions

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
notmuch (0.17-5) unstable; urgency=medium
* Bug fix: "unowned directory after purge: /0755/", thanks to
Andreas Beckmann (Closes: #740325).
-- David Bremner <bremner@debian.org> Mon, 03 Mar 2014 07:29:06 -0400
notmuch (0.17-4) unstable; urgency=medium
* Bug fix: "Please update ruby binary extension install path",

View file

@ -1,4 +1,7 @@
dir="/var/lib/emacsen-common/state/package/installed"
mkdir -p 0755 ${dir}
mkdir -p -m 0755 ${dir}
touch ${dir}/notmuch-emacs
#DEBHELPER#
if [ -d /0755 ]; then
rmdir /0755 || true
fi