From 797e59ab16ec23d22b823c2b59fc63b31d515d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 14 Jun 2015 12:45:48 +0200 Subject: Move rm_confflie from cil.preinst to cil.maintscript --- debian/changelog | 5 ++--- debian/cil.maintscript | 1 + debian/cil.preinst | 34 ---------------------------------- 3 files changed, 3 insertions(+), 37 deletions(-) create mode 100644 debian/cil.maintscript delete mode 100644 debian/cil.preinst diff --git a/debian/changelog b/debian/changelog index 29f2dec..144a9ec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,9 +2,8 @@ cil (0.07.00-10) unstable; urgency=medium * Move bash_completion from etc/bash_completion.d to usr/share/bash-completion/completions - * New cil.preinst: - - Use dpkg-maintscript-helper to remove etc/bash_completion.d/cil - at upgrade. + * New debian/cil.maintscript: + - Remove old etc/bash_completion.d/cil. -- Jörg Frings-Fürst Sat, 23 May 2015 09:42:08 +0200 diff --git a/debian/cil.maintscript b/debian/cil.maintscript new file mode 100644 index 0000000..34eb71b --- /dev/null +++ b/debian/cil.maintscript @@ -0,0 +1 @@ +rm_conffile /etc/bash_completion.d/cil 0.07.0-10 -- "$@" diff --git a/debian/cil.preinst b/debian/cil.preinst deleted file mode 100644 index 14b531d..0000000 --- a/debian/cil.preinst +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -# preinst script for cil -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `install' -# * `install' -# * `upgrade' -# * `abort-upgrade' -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - upgrade) - # new 0.07.0-10 - # needs Pre-Depends: dpkg (>= 1.15.7.2) - dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/cil 0.07.0-10 -- "$@" - ;; - *) - echo "preinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 -- cgit v1.2.3