summaryrefslogtreecommitdiffstats
path: root/tests/t-unpack-divert-overwrite/pkg-divert/DEBIAN/postrm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtests/t-unpack-divert-overwrite/pkg-divert/DEBIAN/postrm7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/t-unpack-divert-overwrite/pkg-divert/DEBIAN/postrm b/tests/t-unpack-divert-overwrite/pkg-divert/DEBIAN/postrm
new file mode 100755
index 0000000..d27fa0e
--- /dev/null
+++ b/tests/t-unpack-divert-overwrite/pkg-divert/DEBIAN/postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "purge" ]; then
+ dpkg-divert --rename --remove /test-file
+fi