Bug#456613: cyrus-common-2.3: unable to remove package

Jamie L. Penman-Smithson jamie at silverdream.org
Sun Dec 16 23:05:21 UTC 2007


package: cyrus-common-2.3
version: 2.3.8-1
severity: normal
tags: patch

Whilst removing cyrus-common-2.3 (due to #437838) the remove fails  
due to an error in postrm:

(Reading database ... 43032 files and directories currently installed.)
Removing cyrus-admin-2.3 ...
Removing cyrus-clients-2.3 ...
Removing cyrus-pop3d-2.3 ...
Removing cyrus-imapd-2.3 ...
Removing cyrus-common-2.3 ...
Stopping Cyrus IMAPd: .
/var/lib/dpkg/info/cyrus-common-2.3.postrm: line 58: syntax error  
near unexpected token `do'
dpkg: error processing cyrus-common-2.3 (--remove):
  subprocess post-removal script returned error exit status 2
Removing libcyrus-imap-perl23 ...
Errors were encountered while processing:
  cyrus-common-2.3
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Building tag database... Done

The following patch fixes this issue:

--- /var/lib/dpkg/info/cyrus-common-2.3.postrm  2007-06-22  
14:33:57.000000000 +0100
+++ /home/jamie/cyrus-common-2.3.postrm 2007-12-16 22:55:43.000000000  
+0000
@@ -55,7 +55,7 @@

                         db_get cyrus-common-2.3/removespools
                         [ "${RET}" = "true" ] && {
-                                        /var/spool/sieve /etc/ 
sieve ; do
+                               for i in /var/spool/sieve /etc/ 
sieve ; do
                                         find "$i" -type f -exec rm - 
f '{}' \; || true
                                         find "$i" -type d -depth - 
not -name 'lost+found' -exec rmdir '{}' \; || true
                                 done

----8<----

Thanks,

-- 
-Jamie L. Penman-Smithson <jamie at silverdream.org>
  t: +44 1273 424795; f: +44 1273 424795
  PGP: C0A7 955E EED6 A309 23D7 863B C76A 26A3 F0DC FCA8
  never send mail to: oubliette.z at gmail.com


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-cyrus-imapd-debian-devel/attachments/20071216/0846b53b/attachment.pgp 


More information about the Pkg-Cyrus-imapd-Debian-devel mailing list