From d64486b69d93cd45049f49e7326e087251e59fa0 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sat, 2 May 2020 12:44:21 +0900 Subject: Use maintscript file instead of manual calls to dpkg-maintscript-helper --- debian/maintscript | 1 + debian/postinst | 3 --- debian/postrm | 5 ----- debian/preinst | 5 ----- 4 files changed, 1 insertion(+), 13 deletions(-) create mode 100644 debian/maintscript diff --git a/debian/maintscript b/debian/maintscript new file mode 100644 index 0000000..963c40f --- /dev/null +++ b/debian/maintscript @@ -0,0 +1 @@ +rm_conffile /etc/w3m/w3mconfig 0.4.2-2~ w3m diff --git a/debian/postinst b/debian/postinst index 7a4a174..8c56088 100644 --- a/debian/postinst +++ b/debian/postinst @@ -2,9 +2,6 @@ set -e -dpkg-maintscript-helper rm_conffile \ - /etc/w3m/w3mconfig 0.4.2-2~ -- "$@" - case "$1" in configure) update-alternatives --quiet --install /usr/bin/pager pager \ diff --git a/debian/postrm b/debian/postrm index 2a99079..ec73b41 100644 --- a/debian/postrm +++ b/debian/postrm @@ -1,8 +1,3 @@ #!/bin/sh - set -e - -dpkg-maintscript-helper rm_conffile \ - /etc/w3m/w3mconfig 0.4.2-2~ -- "$@" - #DEBHELPER# diff --git a/debian/preinst b/debian/preinst index 2a99079..ec73b41 100644 --- a/debian/preinst +++ b/debian/preinst @@ -1,8 +1,3 @@ #!/bin/sh - set -e - -dpkg-maintscript-helper rm_conffile \ - /etc/w3m/w3mconfig 0.4.2-2~ -- "$@" - #DEBHELPER# -- cgit v1.2.3