From 75c3e820b099247b9774dfe2499f59cef50c078e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 14:05:13 +0200 Subject: Adding preinst to take care about package upgrades with respect to directories that are symlinks now (Closes: #442408, #442922). --- debian/changelog | 4 +++- debian/preinst | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 debian/preinst (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index ab51ad9b6..2fc6a85f2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ live-helper (1.0~a29-1) UNRELEASED; urgency=medium - * New upstream release. + * New upstream release: + - Adding preinst to take care about package upgrades with respect to + directories that are symlinks now (Closes: #442408, #442922). -- Daniel Baumann Mon, 24 Sep 2007 00:00:00 +0200 diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 000000000..1e6e21fe8 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,40 @@ +#!/bin/sh + +set -e + +case "${1}" in + install|upgrade) + if [ -h /usr/share/live-helper/data/debian-cd/lenny ] + then + rm -f /usr/share/live-helper/data/debian-cd/lenny + fi + + if [ -h /usr/share/live-helper/data/debian-cd/sid ] + then + rm -f /usr/share/live-helper/data/debian-cd/sid + fi + + if [ -d /usr/share/live-helper/includes ] + then + rm -rf /usr/share/live-helper/includes + fi + + if [ -d /usr/share/live-helper/templates ] + then + rm -rf /usr/share/live-helper/templates + fi + ;; + + abort-upgrade) + + ;; + + *) + echo "preinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 -- cgit v1.2.3