~matttbe/wicd/ubuntu_python27

« back to all changes in this revision

Viewing changes to debian/wicd-curses.postrm

  • Committer: Bazaar Package Importer
  • Author(s): David Paleino
  • Date: 2010-03-05 18:12:51 UTC
  • mfrom: (8.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100305181251-0fcsn0sty5oy8wlq
Tags: 1.7.0+ds1-2
Fix RC bug: daemon doesn't start anymore because copy.deepcopy()
fails with the iniparse object, coming from 20-use_iniparse.patch.
Bug 568326 reopened. (Closes: #572599)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# postrm script for wicd-curses
 
3
#
 
4
# see: dh_installdeb(1)
 
5
 
 
6
set -e
 
7
 
 
8
# summary of how this script can be called:
 
9
#        * <postrm> `remove'
 
10
#        * <postrm> `purge'
 
11
#        * <old-postrm> `upgrade' <new-version>
 
12
#        * <new-postrm> `failed-upgrade' <old-version>
 
13
#        * <new-postrm> `abort-install'
 
14
#        * <new-postrm> `abort-install' <old-version>
 
15
#        * <new-postrm> `abort-upgrade' <old-version>
 
16
#        * <disappearer's-postrm> `disappear' <overwriter>
 
17
#          <overwriter-version>
 
18
# for details, see http://www.debian.org/doc/debian-policy/ or
 
19
# the debian-policy package
 
20
 
 
21
 
 
22
case "$1" in
 
23
    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
24
        find /usr/share/wicd/ \( -name "*.pyo" -o -name "*.pyc" \) -delete || true
 
25
    ;;
 
26
 
 
27
    *)
 
28
        echo "postrm called with unknown argument \`$1'" >&2
 
29
        exit 1
 
30
    ;;
 
31
esac
 
32
 
 
33
#DEBHELPER#
 
34
 
 
35
exit 0