Bug#527566: #527566 mediatomb-daemon: Installation error due to postinst script
Peter Palfrader
weasel at debian.org
Mon Jun 15 06:40:39 UTC 2009
On Tue, 02 Jun 2009, Alban Browaeys wrote:
> And there seems to be a bug in the mv_db is triggers:
> [ -e /var/lib/mediatomb/sqlite3.db ] && \
> cp --preserve /var/lib/mediatomb/sqlite3.db /var/lib/mediatomb/mediatomb.db
> alsways returns 1 which errors out the postinst. Adding
> "|| return 0"
> at the end of it helps. Probably adding parenthesis around to avoid it applying to the "cp" would be good.
The usual approach for this is to either do:
! [ -e file ] || cp file target
or plain old ifs:
if [ -e file ]; then
cp file target
fi
--
| .''`. ** Debian GNU/Linux **
Peter Palfrader | : :' : The universal
http://www.palfrader.org/ | `. `' Operating System
| `- http://www.debian.org/
More information about the pkg-multimedia-maintainers
mailing list