Package: ilohamail
Version: 0.8.14-0rc3sid4
Severity: important
Tags: patch


Initial installation of ilohamail fails in post-inst script, since the
call to dpkg --compare-versions does not fail the way one would hope if
no previous version ("$2") was installed. The subsequent IF block is
executed, leading to the failure message:

Setting up ilohamail (0.8.14-0rc3sid4) ...
I: Installing apache config files:.
I: Copying login.inc to login.php
cp: cannot stat `/etc/IlohaMail/login.inc': No such file or directory
dpkg: error processing ilohamail (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
   ilohamail


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (200, 'stable'), (50, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.16.30.2006110301 (PREEMPT)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to 
en_GB)
Shell: /bin/sh linked to /bin/bash

Versions of packages ilohamail depends on:
ii  apache [httpd]                1.3.34-4.1 versatile, high-performance HTTP s
ii  apache-ssl [httpd]            1.3.34-4.1 versatile, high-performance HTTP s
ii  apache2-mpm-prefork [httpd]   2.2.3-4+b1 Traditional model for Apache HTTPD
ii  debconf                       1.5.13     Debian configuration management sy
ii  exim4-daemon-heavy [mail-tran 4.67-1     exim MTA (v4) daemon with extended
ii  libapache2-mod-php5           5.2.2-1+b1 server-side, HTML-embedded scripti
ii  php4                          6:4.4.6-2  server-side, HTML-embedded scripti
ii  php5                          5.2.2-1    server-side, HTML-embedded scripti
ii  wwwconfig-common              0.0.48     Debian web auto configuration

Versions of packages ilohamail recommends:
ii  aspell                      0.60.5-1     GNU Aspell spell-checker
ii  gnupg                       1.4.6-2      GNU privacy guard - a free PGP rep
ii  mysql-client-5.0 [mysql-cli 5.0.38-3     mysql database client binaries
ii  php4-mysql                  6:4.4.6-2+b1 MySQL module for php4
ii  php5-mysql                  5.2.2-1+b1   MySQL module for php5

-- debconf information:
* ilohamail/webserver_type: Apache-ssl
* ilohamail/weblocation: /IlohaMail
--- ilohamail.postinst.ORG      2007-05-14 14:34:31.000000000 +0100
+++ ilohamail.postinst.NEW      2007-05-14 14:40:51.000000000 +0100
@@ -83,7 +83,7 @@
 echo "."
 
 # Preserve changes from sarge upgrades. (#422411)
-if dpkg --compare-versions "$2" lt "0.8.14-0rc3sid1"; then
+if "$2" -ne "" && dpkg --compare-versions "$2" lt "0.8.14-0rc3sid1"; then
        echo "I: Copying login.inc to login.php"
        cp /etc/IlohaMail/login.inc /etc/IlohaMail/login.php
 fi

Reply via email to