Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use dh_installdeb maintscript support (#659794)

Use maintscript support in dh_installdeb rather than writing out
dpkg-maintscript-helper commands by hand. We now simply Pre-Depend on a
new enough version of dpkg rather than using 'dpkg-maintscript-helper
supports' guards, leading to more predictable behaviour on upgrades.
  • Loading branch information...
commit b54488d4e0d67c8fcbcba3851bbdc3c332e3ebab 1 parent 505c881
Colin Watson cjwatson authored orebokech committed
1  debian/control
@@ -14,6 +14,7 @@ Vcs-Git: git://git.debian.org/collab-maint/tmux.git
14 14
15 15 Package: tmux
16 16 Architecture: any
  17 +Pre-Depends: ${misc:Pre-Depends}
17 18 Depends: ${shlibs:Depends}, ${misc:Depends}
18 19 Description: terminal multiplexer
19 20 tmux enables a number of terminals (or windows) to be accessed and
1  debian/maintscript
... ... @@ -0,0 +1 @@
  1 +rm_conffile /etc/init.d/tmux-cleanup 1.4-6
4 debian/postinst
@@ -2,10 +2,6 @@
2 2
3 3 set -e
4 4
5   -if dpkg-maintscript-helper supports rm_conffile; then
6   - dpkg-maintscript-helper rm_conffile /etc/init.d/tmux-cleanup 1.4-6 -- "$@"
7   -fi
8   -
9 5 if [ "$1" = "configure" ]; then
10 6 if [ -z "$2" ] || dpkg --compare-versions "$2" lt "1.5-3"; then
11 7 add-shell /usr/bin/tmux
4 debian/postrm
@@ -2,10 +2,6 @@
2 2
3 3 set -e
4 4
5   -if dpkg-maintscript-helper supports rm_conffile; then
6   - dpkg-maintscript-helper rm_conffile /etc/init.d/tmux-cleanup 1.4-6 -- "$@"
7   -fi
8   -
9 5 if [ "$1" = "remove" ]; then
10 6 remove-shell /usr/bin/tmux
11 7 fi
4 debian/preinst
@@ -7,8 +7,4 @@ if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" 'lt' "1.5-2"; then
7 7 update-rc.d -f tmux-cleanup remove >/dev/null
8 8 fi
9 9
10   -if dpkg-maintscript-helper supports rm_conffile; then
11   - dpkg-maintscript-helper rm_conffile /etc/init.d/tmux-cleanup 1.4-6 -- "$@"
12   -fi
13   -
14 10 #DEBHELPER#

0 comments on commit b54488d

Please sign in to comment.
Something went wrong with that request. Please try again.