summaryrefslogtreecommitdiffstats
path: root/debian/postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:15 +0000
commit8cabc67967e8b0d613af255553f1ff9db60190e4 (patch)
treeab7c9a43579d3feddc09724a3bd3215d6c096c5e /debian/postrm
parentAdding upstream version 5.4.4. (diff)
downloadreprepro-8cabc67967e8b0d613af255553f1ff9db60190e4.tar.xz
reprepro-8cabc67967e8b0d613af255553f1ff9db60190e4.zip
Adding debian version 5.4.4-1.debian/5.4.4-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/postrm20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..282c335
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ purge)
+ # if purging the package in a failed-upgrade scenerio, also get rid of the temporary file:
+ rm -f /etc/bash_completion.d/reprepro.dpkg-remove
+ ;;
+ abort-install|abort-upgrade)
+ # if the upgrade failed, revert the old /etc/bash_completion.d/reprepro file
+ if test -f /etc/bash_completion.d/reprepro.dpkg-remove && ! test -e /etc/bash_completion.d/reprepro; then
+ mv -n /etc/bash_completion.d/reprepro.dpkg-remove /etc/bash_completion.d/reprepro
+ fi
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0