| 1 |
#! /bin/sh |
| 2 |
set -e |
| 3 |
|
| 4 |
if [ "$1" = rtremove ]; then |
| 5 |
old=$2 |
| 6 |
old_version=${old#pypy3_} |
| 7 |
if which pypy3clean >/dev/null 2>&1; then |
| 8 |
pypy3clean --version $old_version /usr/lib/python3/dist-packages |
| 9 |
else |
| 10 |
echo >&2 "pypy3clean not found in $(basename $0) hook." |
| 11 |
exit 1 |
| 12 |
fi |
| 13 |
fi |