~ubuntu-branches/ubuntu/precise/dbconfig-common/precise

« back to all changes in this revision

Viewing changes to examples/db-test-sqlite3-2.0/debian/postrm

  • Committer: Bazaar Package Importer
  • Author(s): Sean Finney
  • Date: 2008-07-05 01:07:31 UTC
  • mfrom: (15 hardy)
  • mto: (8.1.4 squeeze)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20080705010731-fl8ewjzk9fjkz8ab
* fix for package failing to purge, thanks to Michael Tautschnig for
  reporting this (closes: #476949).
* rc bugfix, high urgency upload.
* a few more more bugs/fixes from Niko Tyni:
  - fix for empty substitution in dbc_upgrade_error (closes: #473028).
  - ensure TODO gets installed, since the docs reference it (closes: #472946).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
#set -x
 
5
 
 
6
if [ -f /usr/share/debconf/confmodule ]; then
 
7
    . /usr/share/debconf/confmodule
 
8
fi
 
9
if [ -f /usr/share/dbconfig-common/dpkg/postrm.sqlite ]; then
 
10
    . /usr/share/dbconfig-common/dpkg/postrm.sqlite3
 
11
    dbc_go db-test-sqlite3 $@
 
12
fi
 
13
 
 
14
if [ "$1" = "purge" ]; then
 
15
        rm -f /etc/db-test-sqlite3/debian-db.php
 
16
        if which ucf >/dev/null 2>&1; then
 
17
                ucf --purge /etc/db-test-sqlite3/debian-db.php
 
18
        fi
 
19
fi
 
20
 
 
21
#DEBHELPER#