Revision 25292,
1.6 KB
checked in by jdreed, 13 years ago
(diff) |
In cluster-login-config:
* Correctly punt the conffiles we removed in 1.36
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # postrm script for debathena-cluster-login-config |
---|
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 | rm_conffile() { |
---|
22 | local PKGNAME="$1" # Unused |
---|
23 | local CONFFILE="$2" |
---|
24 | |
---|
25 | if [ -f "$CONFFILE".dpkg-del ]; then |
---|
26 | mv -f "$CONFFILE".dpkg-del "$CONFFILE" |
---|
27 | fi |
---|
28 | } |
---|
29 | |
---|
30 | case "$1" in |
---|
31 | abort-install|abort-upgrade) |
---|
32 | if dpkg --compare-versions "$2" lt 1.24~; then |
---|
33 | rm_conffile debathena-cluster-login-config "/etc/event.d/ttymsg" |
---|
34 | rm_conffile debathena-cluster-login-config "/etc/init/ttymsg.conf" |
---|
35 | fi |
---|
36 | |
---|
37 | if dpkg --compare-versions "$2" lt 1.36.2~; then |
---|
38 | rm_conffile debathena-cluster-login-config /etc/apt/sources.list.d/debathena-backports.list |
---|
39 | rm_conffile debathena-cluster-login-config /etc/apt/preferences.d/debathena-libstdcplusplus.pref |
---|
40 | fi |
---|
41 | ;; |
---|
42 | |
---|
43 | purge|remove|upgrade|failed-upgrade|disappear) |
---|
44 | ;; |
---|
45 | |
---|
46 | *) |
---|
47 | echo "postrm called with unknown argument \`$1'" >&2 |
---|
48 | exit 1 |
---|
49 | ;; |
---|
50 | esac |
---|
51 | |
---|
52 | # dh_installdeb will replace this with shell code automatically |
---|
53 | # generated by other debhelper scripts. |
---|
54 | |
---|
55 | #DEBHELPER# |
---|
56 | |
---|
57 | exit 0 |
---|
58 | |
---|
59 | |
---|
Note: See
TracBrowser
for help on using the repository browser.