]> git.notmuchmail.org Git - notmuch/commitdiff
debian: fix typo in postinst (Debian bug 740325), clean up empty directory debian/0.17-5
authorDavid Bremner <david@tethera.net>
Sun, 2 Mar 2014 11:36:34 +0000 (07:36 -0400)
committerDavid Bremner <david@tethera.net>
Mon, 3 Mar 2014 11:39:54 +0000 (07:39 -0400)
Try to remove the directory /0755 ; if that fails assume it has
something in it to preserve.

debian/changelog
debian/notmuch-emacs.postinst

index d382dbd8732a4675ece153dce6bf44ff72038315..a419ace11e49afac7db656c3a64253ed175ad64f 100644 (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",
index 48ecf231c354509f2247dcdb77ad6aab53f1078e..1237237de5791ecdf641140218a96876af523561 100644 (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