summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Hommey <glandium@debian.org>2010-04-09 09:54:16 +0200
committerMike Hommey <glandium@debian.org>2010-04-09 10:20:55 +0200
commit6dc2da7f66c7713226264dffe9fcf66fe792cb71 (patch)
tree8c75d2cdbab8ed216a91a18cf1bac3433510ded8
parent81b70f074a16d94ad0cd7e0cd33ee799c9c03042 (diff)
downloadlibxml2-6dc2da7f66c7713226264dffe9fcf66fe792cb71.tar.gz
Remove /usr/share/doc symbolic links on upgrade
They will then be replaced by directories by dpkg. Closes: #577025.
-rw-r--r--debian/libxml2-dbg.preinst11
-rw-r--r--debian/libxml2-dev.preinst11
-rw-r--r--debian/libxml2-utils.preinst11
3 files changed, 33 insertions, 0 deletions
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