Bug#527566: mediatomb-daemon: Installation error due to postinst script

Olivier Berger olivier.berger at it-sudparis.eu
Sat May 16 08:09:06 UTC 2009


On Sat, May 09, 2009 at 09:37:51AM +0200, Eric Valette wrote:
> >> So the update-rc.d fails and then the postinstall script due to || exit $?
> >> after the command. adding || /bin/true makes the script behave correctly
> > 
> > The '|| exit $?' happens during 'configure', not 'purge'. Were you trying to 
> > 'purge' the package?
> > 
> 
> Sorry I mean configure instead of purge.
> 

FYI, here, there was no previous version installed, so, in the following code :
    if dpkg --compare-versions "$2" le "0.11.0-3"; then
        update-rc.d mediatomb remove >/dev/null || exit $?
    fi
$2 is empty, and I'm not sure dpkg --compare-versions "$2" le "0.11.0-3" should be executed, then :-(

I patched the /var/lib/dpkg/info/mediatomb-daemon.postinst script to protect the configure code by a test like :
	if [ "x$2" != "x" ]; then
		...
	fi
and it solved the problem.

I guess this should be a valid workaround.

Best regards,





More information about the pkg-multimedia-maintainers mailing list