diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-12-02 13:09:17 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-12-02 13:09:17 +0300 |
commit | 38fde63f74091af1f6a0d485474769bb6b4f17ce (patch) | |
tree | 1317a1fa2ef61c710ff5c653f43c0af8bb164ca6 /debian/pypy.prerm.in | |
download | pypy-debian.tar.gz |
Import pypy (7.2.0+dfsg-1)debian/7.2.0+dfsg-1debian
Diffstat (limited to 'debian/pypy.prerm.in')
-rw-r--r-- | debian/pypy.prerm.in | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/pypy.prerm.in b/debian/pypy.prerm.in new file mode 100644 index 0000000..8acf255 --- /dev/null +++ b/debian/pypy.prerm.in @@ -0,0 +1,33 @@ +#!/bin/sh + +if [ '#ARCH#' = 'i386' ]; then + pypy -c '' 2>/dev/null + if [ $? -eq 132 ]; then + echo "PyPy doesn't appear to support this CPU." >&2 + echo "SSE2 is required." >&2 + exit 0 + fi +fi + +set -e + +case "$1" in + remove|deconfigure|upgrade) + # We may have to clean up after pypy-lib-testsuite, too, if we're + # removed before it + pypyclean /usr/lib/pypy/lib-python /usr/lib/pypy/lib_pypy + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 +# vim:set et ts=4 sw=4: |