On Wed, 2006-07-05 at 20:45 +0300, Hanna Ollila wrote:
> When testing bopm with piuparts, we get the following error:

Thanks. I fixed this mistake in SVN.

Kind regards,
Philipp Kern
Debian Developer
Index: debian/bopm.postrm
===================================================================
--- debian/bopm.postrm	(revision 716)
+++ debian/bopm.postrm	(revision 870)
@@ -5,8 +5,13 @@
     ;;
 
     purge)
-    delete_etc_files
-    delete_var_files
+      # Delete the default log files if present
+      if [ -f /var/log/bopm/bopm2.log ]; then rm -f /var/log/bopm/bopm2.log; fi
+      if [ -f /var/log/bopm/scan.log ]; then rm -f /var/log/bopm/scan.log; fi
+      # Delete the BOPM directory if non-empty
+      if [ -d /var/log/bopm ]; then
+        rmdir --ignore-fail-on-non-empty /var/log/bopm
+      fi
     ;;
 
     upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
Index: debian/changelog
===================================================================
--- debian/changelog	(revision 716)
+++ debian/changelog	(revision 870)
@@ -1,3 +1,11 @@
+bopm (3.1.2-9) unstable; urgency=low
+
+  [ Philipp Kern ]
+  * Fix package purge, the default log files will now be removed from
+    `/var/log/bopm' (Closes: #376923)
+
+ -- Philipp Kern <[EMAIL PROTECTED]>  Sun, 16 Jul 2006 15:02:28 +0200
+
 bopm (3.1.2-8) unstable; urgency=low
 
   * added Philipp Kern <[EMAIL PROTECTED]> to uploaders and updates his 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to