On 2009-12-09 15:20:45 +0100, Vincent Lefevre wrote:
> Package: wwwoffle
> Version: 2.9d-3
> Severity: grave
> Justification: renders package unusable
>
> I want to purge the package, but it doesn't work, breaking the
> packaging system...
>
> # dpkg --purge wwwoffle
> (Reading database ... 106391 files and directories currently installed.)
> Removing wwwoffle ...
> Stopping HTTP cache proxy server: wwwoffled...can't connect to control socket.
> Trying to signal daemon process...failed, daemon was not running.
> invoke-rc.d: initscript wwwoffle, action "stop" failed.
> dpkg: error processing wwwoffle (--purge):
> subprocess installed pre-removal script returned error exit status 1
[...]
The /var/lib/dpkg/info/wwwoffle.prerm script contains:
set +e # ignore errors while stopping
# Automatically added by dh_installinit
if [ -x "/etc/init.d/wwwoffle" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d wwwoffle stop || exit $?
else
/etc/init.d/wwwoffle stop || exit $?
fi
fi
# End automatically added section
If "|| exit $?" is added, the "set +e" won't prevent the script
from exiting with a non-zero status.
--
Vincent Lefèvre <[email protected]> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]