Debian Codegraph @

debian/pypy3-lib.prerm.in

raw
1 #!/bin/sh
2
3 if [ '#ARCH#' = 'i386' ]; then
4 pypy3 -c '' 2>/dev/null
5 if [ $? -eq 132 ]; then
6 echo "PyPy doesn't appear to support this CPU." >&2
7 echo "SSE2 is required." >&2
8 exit 0
9 fi
10 fi
11
12 set -e
13
14 case "$1" in
15 upgrade)
16 if command -v pypy3clean > /dev/null; then
17 # Clean up any .pyc files, so emptied directories get removed
18 pypy3clean /usr/lib/pypy3.11
19 fi
20 ;;
21
22 remove|deconfigure)
23 ;;
24
25 failed-upgrade)
26 ;;
27
28 *)
29 echo "prerm called with unknown argument \`$1'" >&2
30 exit 1
31 ;;
32 esac
33
34 #DEBHELPER#
35
36 exit 0
37 # vim:set et ts=4 sw=4: