blob: 9c71641cdb6edcdc0af281a203190a2a766e4df8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh -e
case "$1" in
install)
;;
upgrade)
pycentral pkgremove python-logilab-common 2>/dev/null || true
rm -vrf /usr/lib/$(pyversions -d)/site-packages/logilab/common
if [[ $(find /usr/lib/$(pyversions -d)/site-packages/logilab/ -maxdepth 1 -type d | wc -l) = '1' ]]; then
rm -vrf /usr/lib/$(pyversions -d)/site-packages/logilab/
fi
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument '$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
|