summaryrefslogtreecommitdiff
path: root/debian/PVER-minimal.prerm.in
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-09-29 13:40:02 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-09-29 13:40:02 +0300
commit424a50000a78fff715de4417dba9b4498aeeee4c (patch)
treed27f003c7d140fef24efd1b2ca1325ae099154b9 /debian/PVER-minimal.prerm.in
downloadpython3.5-debian.tar.gz
Imported python3.5 3.5.4-4debian/3.5.4-4debian
Diffstat (limited to 'debian/PVER-minimal.prerm.in')
-rw-r--r--debian/PVER-minimal.prerm.in36
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/PVER-minimal.prerm.in b/debian/PVER-minimal.prerm.in
new file mode 100644
index 0000000..77c962b
--- /dev/null
+++ b/debian/PVER-minimal.prerm.in
@@ -0,0 +1,36 @@
+#! /bin/sh
+
+set -e
+
+case "$1" in
+ remove)
+ if [ "$DEBIAN_FRONTEND" != noninteractive ]; then
+ echo "Unlinking and removing bytecode for runtime @PVER@"
+ fi
+ for hook in /usr/share/python3/runtime.d/*.rtremove; do
+ [ -x $hook ] || continue
+ $hook rtremove @PVER@ || continue
+ done
+
+ if which update-binfmts >/dev/null; then
+ update-binfmts --package @PVER@ --remove @PVER@ /usr/bin/@PVER@
+ fi
+
+ localsite=/usr/local/lib/@PVER@/dist-packages
+ [ -d $localsite ] && rmdir $localsite 2>/dev/null || true
+ [ -d $(dirname $localsite) ] \
+ && rmdir $(dirname $localsite) 2>/dev/null || true
+ ;;
+ upgrade)
+ ;;
+ deconfigure)
+ ;;
+ failed-upgrade)
+ ;;
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#