summaryrefslogtreecommitdiffstats
path: root/tests/t-failinst-failrm/pkg-failinst-failrm-0/DEBIAN/prerm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtests/t-failinst-failrm/pkg-failinst-failrm-0/DEBIAN/prerm15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/t-failinst-failrm/pkg-failinst-failrm-0/DEBIAN/prerm b/tests/t-failinst-failrm/pkg-failinst-failrm-0/DEBIAN/prerm
new file mode 100755
index 0000000..0abf6fb
--- /dev/null
+++ b/tests/t-failinst-failrm/pkg-failinst-failrm-0/DEBIAN/prerm
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+case "$1" in
+ remove)
+ exit 1
+ ;;
+ purge|upgrade|failed-upgrade|disappear|abort-install|abort-upgrade)
+ ;;
+ *)
+ echo "$0 called with unknown argument '$1'" 1>&2
+ exit 1
+ ;;
+esac
+
+exit 0