From 49cf845b531450286f7bca848fcfe9d4af63895b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 26 Mar 2013 15:52:33 +0000 Subject: [PATCH] add a preinst script for .deb svn: r21747 --- debian/gramps.preinst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 debian/gramps.preinst diff --git a/debian/gramps.preinst b/debian/gramps.preinst new file mode 100644 index 000000000..9ea30c46a --- /dev/null +++ b/debian/gramps.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-gramps.list ] && which pycentral >/dev/null 2>&1 +then + pycentral pkgremove python-gramps +fi + +#DEBHELPER#