add a preinst script for .deb
svn: r21747
This commit is contained in:
parent
f3859a2fb9
commit
49cf845b53
14
debian/gramps.preinst
vendored
Normal file
14
debian/gramps.preinst
vendored
Normal file
@ -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#
|
Loading…
Reference in New Issue
Block a user