Followup-For: Bug #767665
Control: tag -1 patch pending

Hi,

I just uploaded a NMU to DELAYED/2 to get this fix into jessie.
I'll ask for an unblock, too.
Feel free to object to these plans or beat my delayed upload :-)

I'n not sure whether it is neccessary to restart on purge, too, but
since old conffiles may have disappeared at that point I kept it that
way, just added a guard.

Then I also fixed the followup piuparts issue - leaving unowned files
aorund after purge. Upon purge the postinst now also deletes the files
created by the postinst.

Andreas
only in patch2:
unchanged:
--- nagios2mantis-3.1.orig/debian/changelog
+++ nagios2mantis-3.1/debian/changelog
@@ -1,3 +1,13 @@
+nagios2mantis (3.1-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * postrm: Check for /etc/init.d/incron before restarting incron.
+    (Closes: #767665)
+  * postrm purge: Cleanup files created by the postinst in
+    /var/lib/nagios2mantis.
+
+ -- Andreas Beckmann <a...@debian.org>  Mon, 01 Dec 2014 04:50:20 +0100
+
 nagios2mantis (3.1-1) unstable; urgency=medium
 
   * debian/control: add python-minimal to Build-Depends (closes: #759222).
only in patch2:
unchanged:
--- nagios2mantis-3.1.orig/debian/postrm
+++ nagios2mantis-3.1/debian/postrm
@@ -20,7 +20,16 @@
 if [ "$1" = "remove" ] || [ "$1" = "purge" ]
 then
     # Restart incron
+  if [ -f /etc/init.d/incron ]; then
     invoke-rc.d incron restart
+  fi
+fi
+
+if [ "$1" = "purge" ]
+then
+    rm -f /var/lib/nagios2mantis/spool.sqlite
+    rm -f /var/lib/nagios2mantis/nagios2mantis.inotify
+    test ! -d /var/lib/nagios2mantis || rmdir --ignore-fail-on-non-empty /var/lib/nagios2mantis 
 fi
 
 #DEBHELPER#

Reply via email to