summaryrefslogtreecommitdiffstats
path: root/misc/python-ssl-1.15/debian/python-ssl.preinst
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2009-12-01 09:21:40 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2009-12-01 09:21:40 +0000
commitb789371b61d4334b3016cbad0a70d794e2185b1a (patch)
tree668a335a0c5651fbc72fdd96bcd0dd57201e8c94 /misc/python-ssl-1.15/debian/python-ssl.preinst
parent2f9f45bddddf109c7be912e996e82e23c687f8b5 (diff)
downloadbcfg2-b789371b61d4334b3016cbad0a70d794e2185b1a.tar.gz
bcfg2-b789371b61d4334b3016cbad0a70d794e2185b1a.tar.bz2
bcfg2-b789371b61d4334b3016cbad0a70d794e2185b1a.zip
Don't have a better place to put python-ssl debian packaging for now.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5601 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'misc/python-ssl-1.15/debian/python-ssl.preinst')
-rw-r--r--misc/python-ssl-1.15/debian/python-ssl.preinst14
1 files changed, 14 insertions, 0 deletions
diff --git a/misc/python-ssl-1.15/debian/python-ssl.preinst b/misc/python-ssl-1.15/debian/python-ssl.preinst
new file mode 100644
index 000000000..f1afdfa16
--- /dev/null
+++ b/misc/python-ssl-1.15/debian/python-ssl.preinst
@@ -0,0 +1,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#