cyrus 2.3 packages

Sven Mueller sven at incase.de
Sat Jul 21 16:38:09 UTC 2007


Benjamin Seidenberg schrieb:
> Here is an error I got while removing cyrus-common-2.3 on etch:
> 
> ____SNIP____
> (Reading database ... 8394 files and directories currently installed.)
> Removing cyrus-common-2.3 ...
> /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
> Errors were encountered while processing:
> cyrus-common-2.3
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> ____SNIP____
> 
> Would you prefer I opened a bug on this?

> Yes please, only because I don't have time for debian stuff right now, and
> don't want to lose it. Also, please send to the list next time.

The error was easy to find and fix. There was a single line missing in
that postrm script. Actually the missing part is

for i in /var/spool/cyrus /var/lib/cyrus \

without the quotes in a line before the that error or in other words
right after the following line (in case you want to fix it by hand on
your system):
[ "${RET}" = "true" ] && {

The complete part should read:

....
[ "${RET}" = "true" ] && {
for i in /var/spool/cyrus /var/lib/cyrus \
/var/spool/sieve /etc/sieve ; do
find "$i" -type f -exec rm -f '{}' \; || true
....


cu,
Sven

PS: It is fixed in our Subversion repository already, so no need anymore
to file a bug.




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