summaryrefslogtreecommitdiffstats
path: root/misc/python-ssl-1.15/debian/python-ssl.preinst
blob: f1afdfa160c4a23546ad7d55c1f6b563159852c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh

set -e

# This was added by stdeb to workaround Debian #479852. In a nutshell,
# pycentral does not remove normally remove its symlinks on an
# upgrade. Since we're using python-support, however, those symlinks
# will be broken. This tells python-central to clean up any symlinks.
if [ -e /var/lib/dpkg/info/python-ssl.list ] && which pycentral >/dev/null 2>&1
then
    pycentral pkgremove python-ssl
fi

#DEBHELPER#