diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-09-29 13:40:02 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-09-29 13:40:02 +0300 |
commit | 424a50000a78fff715de4417dba9b4498aeeee4c (patch) | |
tree | d27f003c7d140fef24efd1b2ca1325ae099154b9 /debian/PVER-minimal.prerm.in | |
download | python3.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.in | 36 |
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# |