~ubuntu-branches/ubuntu/karmic/cyrus-imapd-2.2/karmic

« back to all changes in this revision

Viewing changes to debian/cyrus-common-2.2.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-12-07 17:31:51 UTC
  • Revision ID: james.westby@ubuntu.com-20061207173151-u34z5dafs5nh9sat
Tags: 2.2.13-9ubuntu1
* Merge with Debian unstable; remaining changes:
  - Build using DB4.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# postrm script for cyrus-common-2.2
3
3
# Copyright (c) 2002 by Henrique de Moraes Holschuh
4
4
# Distributed under the GNU General Public License version 2
5
 
# $Id: cyrus-common-2.2.postrm 232 2005-12-10 22:18:01Z astronut $
 
5
# $Id: cyrus-common-2.2.postrm 681 2006-10-25 17:42:18Z astronut $
6
6
#
7
7
# see: dh_installdeb(1)
8
8
 
55
55
                        update-rc.d cyrus2.2 remove >/dev/null
56
56
                ;;
57
57
 
58
 
                upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
59
 
 
60
 
                        ;;
61
 
 
 
58
                upgrade|failed-upgrade|disappear)
 
59
                        ;;
 
60
                abort-upgrade)
 
61
                        # old version was in "configuration files only" state,
 
62
                        # installation of new package failed before or after unpack
 
63
                        if dpkg --compare-versions "$2" lt "2.2.13-4bpo1" ; then
 
64
                                if [ -f /etc/cron.daily/cyrus22 ] \
 
65
                                && [ ! -f /etc/cron.daily/cyrus-common-2.2 ]; then
 
66
                                        mv -f /etc/cron.daily/cyrus22 /etc/cron.daily/cyrus-common-2.2
 
67
                                fi
 
68
                        fi
 
69
                        ;;
 
70
                abort-install)
 
71
                        # old version was fully installed, but upgrade failed
 
72
                        if dpkg --compare-versions "$2" lt "2.2.13-4bpo1" ; then
 
73
                                if [ -f /etc/cron.daily/cyrus22 ] \
 
74
                                && [ ! -f /etc/cron.daily/cyrus-common-2.2 ]; then
 
75
                                        mv -f /etc/cron.daily/cyrus22 /etc/cron.daily/cyrus-common-2.2
 
76
                                fi
 
77
                        fi
 
78
                        ;;
62
79
                *)
63
80
                        echo "postrm called with unknown argument \`$1'" >&2
64
81
                        exit 0