summaryrefslogtreecommitdiff
path: root/debian/gcj-native-helper.preinst
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2016-02-26 18:36:14 +0100
committerMatthias Klose <doko@ubuntu.com>2016-02-26 18:36:14 +0100
commit0820c527743ea34353a95b7980659cbb86712a47 (patch)
treea45fe17bbb770fdc846fd5beed153c5fbaeecdb5 /debian/gcj-native-helper.preinst
parentef651032e3157ddb0e2cf49dfb08139b5a58a848 (diff)
downloadjava-common-0820c527743ea34353a95b7980659cbb86712a47.tar.gz
* Just remove the gcj-native-helper doc symlink on upgrade. Closes: #813223.
Diffstat (limited to 'debian/gcj-native-helper.preinst')
-rw-r--r--debian/gcj-native-helper.preinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/gcj-native-helper.preinst b/debian/gcj-native-helper.preinst
new file mode 100644
index 0000000..51b90b6
--- /dev/null
+++ b/debian/gcj-native-helper.preinst
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+set -e
+
+if [ "$1" = upgrade ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt 2:1.8-57~; then
+ if [ -h /usr/share/doc/gcj-native-helper ]; then
+ rm -f /usr/share/doc/gcj-native-helper
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0