Package: dspam
Version: 3.9.1~rc1+git20110419.29261fb+dfsg-1
Severity: serious
Tags: patch
Justification: fails to upgrade

=================================================================
Errors were encountered while processing:
 dspam
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up dspam (3.9.1~rc1+git20110419.29261fb+dfsg-1) ...
dpkg-statoverride: error: An override for 'dir' already exists, aborting.
dpkg: error processing dspam (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 dspam

=================================================================

Seems like a missing $ in front of the dir variable used in dspam.postinst.
See attached patch.....


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (300, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dspam depends on:
ii  lib 2.13-2                               Embedded GNU C Library: Shared lib
ii  lib 3.9.1~rc1+git20110419.29261fb+dfsg-1 Core message processing and classi
ii  lsb 3.2-27                               Linux Standard Base 3.2 init scrip
ii  per 5.10.1-20                            Larry Wall's Practical Extraction 
ii  pro 3.22-19                              Versatile e-mail processor

Versions of packages dspam recommends:
ii  dsp 3.9.1~rc1+git20110419.29261fb+dfsg-1 Documentation for DSPAM anti-spam 

Versions of packages dspam suggests:
pn  clamav-daemon                 <none>     (no description available)
pn  dspam-webfrontend             <none>     (no description available)

-- Configuration Files:
/etc/dspam/dspam.conf [Errno 13] Permission denied: u'/etc/dspam/dspam.conf'
/etc/dspam/dspam.d/extlookup.conf [Errno 13] Permission denied: 
u'/etc/dspam/dspam.d/extlookup.conf'
/etc/dspam/dspam.d/hash.conf [Errno 13] Permission denied: 
u'/etc/dspam/dspam.d/hash.conf'

-- no debconf information
diff -urip dspam-3.9.1~rc1+git20110419.29261fb+dfsg.orig//debian/dspam.postinst dspam-3.9.1~rc1+git20110419.29261fb+dfsg/debian/dspam.postinst
--- dspam-3.9.1~rc1+git20110419.29261fb+dfsg.orig//debian/dspam.postinst	2011-05-08 13:44:14.000000000 +0200
+++ dspam-3.9.1~rc1+git20110419.29261fb+dfsg/debian/dspam.postinst	2011-05-08 21:13:53.000000000 +0200
@@ -37,9 +37,9 @@ set_dspam_perms() {
     # Directories in /var/spool/dspam are made read-only as they contain private data
     DSPAM_HOME="/var/spool/dspam"
     for dir in $DSPAM_HOME $DSPAM_HOME/data $DSPAM_HOME/opt-in $DSPAM_HOME/opt-out ; do
-        if ! dpkg-statoverride --list dir >/dev/null
+        if ! dpkg-statoverride --list $dir >/dev/null
         then
-            dpkg-statoverride --update --add dspam dspam 0770 dir
+            dpkg-statoverride --update --add dspam dspam 0770 $dir
         fi
     done
 

Reply via email to