Package: mono-xsp2
Version: 1.2.1-2

Problem: mono-xsp2 doesnt install if mono-xsp is installed too.
Output of apt-get install mono-xsp2:

Unpacking mono-xsp2 (from .../mono-xsp2_1.2.1-2_all.deb) ...
invoke-rc.d: unknown initscript, /etc/init.d/mono-xsp2 not found.
dpkg: error processing
/var/cache/apt/archives/mono-xsp2_1.2.1-2_all.deb (--unpack):
subprocess pre-installation script returned error exit status 100
Errors were encountered while processing:
/var/cache/apt/archives/mono-xsp2_1.2.1-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

Cause: after examining the preinst script i noticed it checks for
/etc/init.d/mono-xsp not mono-xsp2,
that causes it to execute the mono-xsp2 init with the stop paramater
which fails as its not there if this a new install and not a update
from a previous version of mono-xsp2.

Suggested fix: make the preinst script check for the correct initscript

Output of debdiff between your package and my fixed version:

[EMAIL PROTECTED]:~/mono-xsp# debdiff --controlfiles preinst
mono-xsp2_1.2.1-2_all.deb  mono-xsp2_1.2.1-2_all_fixed.deb
File lists identical (after any substitutions)

Preinst files: lines which differ (wdiff format)
------------------------------------------------
       if [ -f [-/etc/init.d/mono-xsp-] {+/etc/init.d/mono-xsp2+} ]; then

Additional Info: the same problem exist in the stable version 1.2.1-1

Reply via email to