summaryrefslogtreecommitdiffstats
path: root/debian/minilzip.prerm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/minilzip.prerm')
-rwxr-xr-xdebian/minilzip.prerm29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/minilzip.prerm b/debian/minilzip.prerm
new file mode 100755
index 0000000..fffc839
--- /dev/null
+++ b/debian/minilzip.prerm
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ remove|upgrade|deconfigure)
+ # lzip-alternative
+ update-alternatives --quiet --remove lzip /usr/bin/lzip.minilzip
+
+ # lzip-compressor
+ update-alternatives --quiet --remove lzip-compressor /usr/bin/lzip.minilzip
+
+ # lzip-decompressor
+ update-alternatives --quiet --remove lzip-decompressor /usr/bin/lzip.minilzip
+ ;;
+
+ failed-upgrade)
+
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0