diff options
author | David Bremner <david@tethera.net> | 2014-03-02 07:36:34 -0400 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-03-03 07:39:54 -0400 |
commit | 7b0d53a9064161f2f0f4f88fefd64133d089222e (patch) | |
tree | da90fff1cf00535912b8ae12d7e3a3a4aec6bed5 /debian | |
parent | c35dcb7704460f803fef2b7b6567dd3b0e5621ea (diff) |
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.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | debian/notmuch-emacs.postinst | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index d382dbd8..a419ace1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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", diff --git a/debian/notmuch-emacs.postinst b/debian/notmuch-emacs.postinst index 48ecf231..1237237d 100644 --- a/debian/notmuch-emacs.postinst +++ b/debian/notmuch-emacs.postinst @@ -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 |