From 7b0d53a9064161f2f0f4f88fefd64133d089222e Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 2 Mar 2014 07:36:34 -0400 Subject: 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. --- debian/notmuch-emacs.postinst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'debian/notmuch-emacs.postinst') 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 -- cgit v1.2.3