From 6dc2da7f66c7713226264dffe9fcf66fe792cb71 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Fri, 9 Apr 2010 09:54:16 +0200 Subject: Remove /usr/share/doc symbolic links on upgrade They will then be replaced by directories by dpkg. Closes: #577025. --- debian/libxml2-dbg.preinst | 11 +++++++++++ debian/libxml2-dev.preinst | 11 +++++++++++ debian/libxml2-utils.preinst | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 debian/libxml2-dbg.preinst create mode 100644 debian/libxml2-dev.preinst create mode 100644 debian/libxml2-utils.preinst diff --git a/debian/libxml2-dbg.preinst b/debian/libxml2-dbg.preinst new file mode 100644 index 0000000..c248ab0 --- /dev/null +++ b/debian/libxml2-dbg.preinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +[ "$1" = "upgrade" ] && +[ -L /usr/share/doc/libxml2-dbg ] && +rm -f /usr/share/doc/libxml2-dbg + +#DEBHELPER# + +exit 0 diff --git a/debian/libxml2-dev.preinst b/debian/libxml2-dev.preinst new file mode 100644 index 0000000..6429c86 --- /dev/null +++ b/debian/libxml2-dev.preinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +[ "$1" = "upgrade" ] && +[ -L /usr/share/doc/libxml2-dev ] && +rm -f /usr/share/doc/libxml2-dev + +#DEBHELPER# + +exit 0 diff --git a/debian/libxml2-utils.preinst b/debian/libxml2-utils.preinst new file mode 100644 index 0000000..8c07be8 --- /dev/null +++ b/debian/libxml2-utils.preinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +[ "$1" = "upgrade" ] && +[ -L /usr/share/doc/libxml2-utils ] && +rm -f /usr/share/doc/libxml2-utils + +#DEBHELPER# + +exit 0 -- cgit v1.2.3