Initial attempt to build a debian packaged version of
[htsworkflow.git] / debian / python-htsworkflow.preinst
diff --git a/debian/python-htsworkflow.preinst b/debian/python-htsworkflow.preinst
new file mode 100644 (file)
index 0000000..976b401
--- /dev/null
@@ -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-htsworkflow.list ] && which pycentral >/dev/null 2>&1
+then
+    pycentral pkgremove python-htsworkflow
+fi
+
+#DEBHELPER#