Package: canna
Version: 3.7p3-6.3
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu maverick ubuntu-patch


Ubuntu report and patch:
https://bugs.edge.launchpad.net/ubuntu/+source/canna/+bug/569678

The package failed to purge with the error:
---
Removing canna ...
Stopping cannaserver...
Purging configuration files for canna ...
Looking for files to backup/remove ...
Not backing up/removing `/var/lib/canna', it matches ^/var/.*.
Removing user `canna' ...
Warning: group `canna' has no more members.
Done.
/usr/sbin/deluser: The user `canna' does not exist.
dpkg: error processing canna (--purge):
 subprocess installed post-removal script returned error exit status 2


In Ubuntu, we've applied the attached patch to achieve the following:

  * debian/postrm: don't fail if canna user is already deleted (LP: #569678)

We thought you might be interested in doing the same. 



-- System Information:
Debian Release: squeeze/sid
  APT prefers lucid-updates
  APT policy: (500, 'lucid-updates'), (500, 'lucid')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-19-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u canna-3.7p3/debian/changelog canna-3.7p3/debian/changelog
diff -u canna-3.7p3/debian/postrm canna-3.7p3/debian/postrm
--- canna-3.7p3/debian/postrm
+++ canna-3.7p3/debian/postrm
@@ -5,7 +5,7 @@
 case "$1" in
     purge)
     rm -rf /var/log/canna
-    deluser --remove-home canna
+    deluser --remove-home canna >/dev/null 2>&1 || true
     rm -f /etc/default/canna
     rm -f /etc/hosts.canna
     rm -rf /var/lib/canna/dic/group

Reply via email to