Hello! Please see attached NMU diff. I will upload very soon unless someone has any objections!
-- Andreas Henriksson
diff -u mediatomb-0.12.0~svn2018/debian/changelog mediatomb-0.12.0~svn2018/debian/changelog --- mediatomb-0.12.0~svn2018/debian/changelog +++ mediatomb-0.12.0~svn2018/debian/changelog @@ -1,3 +1,15 @@ +mediatomb (0.12.0~svn2018-3.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/mediatomb-daemon.postinst: + avoid trying (and failing!) to migrate database and purge rc.d scripts + on clean installs, only do it on upgrades. + (Also make sure the db file exists before trying to copy it for extra + safety.) + Thanks goes to all the people who commented on the bug! (Closes: #527566) + + -- Andreas Henriksson <andr...@fatal.se> Tue, 04 Aug 2009 09:26:40 +0200 + mediatomb (0.12.0~svn2018-3) unstable; urgency=low * Fix minor typo in mediatomb-transcode script. diff -u mediatomb-0.12.0~svn2018/debian/mediatomb-daemon.postinst mediatomb-0.12.0~svn2018/debian/mediatomb-daemon.postinst --- mediatomb-0.12.0~svn2018/debian/mediatomb-daemon.postinst +++ mediatomb-0.12.0~svn2018/debian/mediatomb-daemon.postinst @@ -12,17 +12,17 @@ # Copies database file from sqlite3.db to mediatomb.db mv_db() { [ ! -e /var/lib/mediatomb/mediatomb.db ] || return 0 - [ -e /var/lib/mediatomb/sqlite3.db ] && \ + [ ! -e /var/lib/mediatomb/sqlite3.db ] || \ cp --preserve /var/lib/mediatomb/sqlite3.db /var/lib/mediatomb/mediatomb.db } case "$1" in configure) # Force removal of previous scripts if upgrading from 0.11.0-3 - if dpkg --compare-versions "$2" le "0.11.0-3"; then + if [ -n "$2" ] && dpkg --compare-versions "$2" le "0.11.0-3"; then update-rc.d mediatomb remove >/dev/null || exit $? fi - if dpkg --compare-versions "$2" le "0.12.0~svn2018-1"; then + if [ -n "$2" ] && dpkg --compare-versions "$2" le "0.12.0~svn2018-1"; then mv_db fi esac