~ubuntu-branches/ubuntu/oneiric/mediatomb/oneiric

« back to all changes in this revision

Viewing changes to debian/mediatomb-daemon.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-08-28 11:06:18 UTC
  • Revision ID: james.westby@ubuntu.com-20090828110618-02dt2svsn1v84g7e
Tags: 0.12.0~svn2018-4ubuntu1
* Merge from debian unstable, Ubuntu remaining changes:
  - Add OR depends on abrowser.
* Add glibc-2.10_fix.patch patch to prevent FTBFS with glibc-2.10.
* debian/config.xml.dist: Allow playing the mkv files that haven't
  "video/x-matroska" as mimetype (LP: #417533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
# Copies database file from sqlite3.db to mediatomb.db
13
13
mv_db() {
14
14
    [ ! -e /var/lib/mediatomb/mediatomb.db ] || return 0
15
 
    [ -e /var/lib/mediatomb/sqlite3.db ] && \
 
15
    [ ! -e /var/lib/mediatomb/sqlite3.db ] || \
16
16
        cp --preserve /var/lib/mediatomb/sqlite3.db /var/lib/mediatomb/mediatomb.db
17
17
}
18
18
 
19
19
case "$1" in
20
20
configure)
21
21
    # Force removal of previous scripts if upgrading from 0.11.0-3
22
 
    if dpkg --compare-versions "$2" le "0.11.0-3"; then
 
22
    if [ -n "$2" ] && dpkg --compare-versions "$2" le "0.11.0-3"; then
23
23
        update-rc.d mediatomb remove >/dev/null || exit $?
24
24
    fi
25
 
    if dpkg --compare-versions "$2" le "0.12.0~svn2018-1"; then
 
25
    if [ -n "$2" ] && dpkg --compare-versions "$2" le "0.12.0~svn2018-1"; then
26
26
        mv_db
27
27
    fi
28
28
esac