summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog5
-rw-r--r--debian/cil.preinst5
-rw-r--r--debian/control2
3 files changed, 7 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index 010fc62..29f2dec 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,9 +3,10 @@ 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:
- - Remove etc/bash_completion.d/cil at upgrade.
+ - Use dpkg-maintscript-helper to remove etc/bash_completion.d/cil
+ at upgrade.
- -- Jörg Frings-Fürst <debian@jff-webhosting.net> Thu, 21 May 2015 21:30:24 +0200
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Sat, 23 May 2015 09:42:08 +0200
cil (0.07.00-9) unstable; urgency=low
diff --git a/debian/cil.preinst b/debian/cil.preinst
index 10a7444..14b531d 100644
--- a/debian/cil.preinst
+++ b/debian/cil.preinst
@@ -17,9 +17,8 @@ set -e
case "$1" in
upgrade)
# new 0.07.0-10
- if [ -e /etc/bash_completion.d/cil ]; then
- rm -f /etc/bash_completion.d/cil
- fi
+ # 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
diff --git a/debian/control b/debian/control
index 62163d9..7f7764e 100644
--- a/debian/control
+++ b/debian/control
@@ -33,6 +33,8 @@ Depends:
libfile-slurp-perl,
libfile-touch-perl,
libgetopt-mixed-perl
+Pre-Depends:
+ dpkg (>= 1.15.7.2)
Description: command line issue tracker
'cil' allows easy command-line creation of an issue tracker. It saves each
issue locally and in plain text. Commands are given such that these issues can