Package: mysql-common-4.1
Severity: minor
Version: 4.1.11-1
Tags: patch

hi,

purging the package fails if /etc/mysql doesn't exist:

 Removing mysql-common-4.1 ...
 Purging configuration files for mysql-common-4.1 ...
 rmdir: `/etc/mysql': No such file or directory
 dpkg: error processing mysql-common-4.1 (--purge):
  subprocess post-removal script returned error exit status 1
 Errors were encountered while processing:
  mysql-common-4.1
 E: Sub-process /usr/bin/dpkg returned an error code (1)

see attached patch.

bye,
    - michael
diff -ruN debian/mysql-common-4.1.postrm debian.self/mysql-common-4.1.postrm
--- debian/mysql-common-4.1.postrm      2005-04-19 13:21:50.000000000 +0200
+++ debian.self/mysql-common-4.1.postrm 2005-04-19 13:20:32.000000000 +0200
@@ -1,9 +1,11 @@
 #!/bin/bash
 
 if [ "$1" = "purge" ]; then
+ if [ -e '/etc/mysql' ]; then
   if [ -z "`ls /etc/mysql 2>/dev/null`" ]; then
     rmdir /etc/mysql
   fi
+ fi
 fi
 
 #DEBHELPER#

Reply via email to