summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-06-14 12:45:48 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-06-14 12:45:48 +0200
commit797e59ab16ec23d22b823c2b59fc63b31d515d55 (patch)
tree10456e186fc1b35c76b88e85d6cd11c7ad29487d
parent0a9d9e0d12a6426d3de424d1835ef6287ba7f877 (diff)
Move rm_confflie from cil.preinst to cil.maintscript
-rw-r--r--debian/changelog5
-rw-r--r--debian/cil.maintscript1
-rw-r--r--debian/cil.preinst34
3 files changed, 3 insertions, 37 deletions
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 <debian@jff-webhosting.net> 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:
-# * <new-preinst> `install'
-# * <new-preinst> `install' <old-version>
-# * <new-preinst> `upgrade' <old-version>
-# * <old-preinst> `abort-upgrade' <new-version>
-# 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