[SCM] MediaTomb packaging branch, master, updated. debian/0.12.0.svn2018-3-3-g910239e
ceros-guest at users.alioth.debian.org
ceros-guest at users.alioth.debian.org
Thu Aug 6 01:08:14 UTC 2009
The following commit has been merged in the master branch:
commit eeea6db3377029dee53ee13fb0b82afc6586a6fd
Author: Andreas Henriksson <andreas at fatal.se>
Date: Wed Aug 5 20:27:03 2009 -0400
Fix installation error due to postinst script. (Closes: #527566)
diff --git a/debian/changelog b/debian/changelog
index 320f2f8..588e1aa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,17 @@
mediatomb (0.12.0~svn2018-4) unstable; urgency=low
- * Prepare for new release.
+ [ Andreas Henriksson ]
+ * 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)
- -- Andres Mejia <mcitadel at gmail.com> Wed, 05 Aug 2009 20:12:34 -0400
+ [ Andres Mejia ]
+ * Prepare new release.
+
+ -- Andres Mejia <mcitadel at gmail.com> Wed, 05 Aug 2009 20:22:51 -0400
mediatomb (0.12.0~svn2018-3) unstable; urgency=low
diff --git a/debian/mediatomb-daemon.postinst b/debian/mediatomb-daemon.postinst
index 81a5bde..7f22fa8 100644
--- a/debian/mediatomb-daemon.postinst
+++ b/debian/mediatomb-daemon.postinst
@@ -12,17 +12,17 @@ fi
# 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
--
MediaTomb packaging
More information about the pkg-multimedia-commits
mailing list