[java-common] 01/02: * Just remove the gcj-native-helper doc symlink on upgrade. Closes: #813223.

Matthias Klose doko at moszumanska.debian.org
Fri Feb 26 17:37:05 GMT 2016


This is an automated email from the git hooks/post-receive script.

doko pushed a commit to branch master
in repository java-common.

commit 0820c527743ea34353a95b7980659cbb86712a47
Author: Matthias Klose <doko at ubuntu.com>
Date:   Fri Feb 26 18:36:14 2016 +0100

      * Just remove the gcj-native-helper doc symlink on upgrade. Closes: #813223.
---
 debian/changelog                     |  3 ++-
 debian/gcj-native-helper.maintscript |  1 -
 debian/gcj-native-helper.preinst     | 13 +++++++++++++
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 34e5ec3..388313b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,9 @@ java-common (0.57) UNRELEASED; urgency=medium
 
   * Build a default-jdk-headless package.
   * java_defaults.mk: Fix jvm_archdir macro (Jonas Smedegaard). Closes: #814783.
+  * Just remove the gcj-native-helper doc symlink on upgrade. Closes: #813223.
 
- -- Matthias Klose <doko at debian.org>  Thu, 25 Feb 2016 02:45:18 +0100
+ -- Matthias Klose <doko at debian.org>  Fri, 26 Feb 2016 18:34:49 +0100
 
 java-common (0.56) unstable; urgency=medium
 
diff --git a/debian/gcj-native-helper.maintscript b/debian/gcj-native-helper.maintscript
deleted file mode 100644
index 0301f31..0000000
--- a/debian/gcj-native-helper.maintscript
+++ /dev/null
@@ -1 +0,0 @@
-symlink_to_dir /usr/share/doc/gcj-native-helper /usr/share/doc/default-jdk 0.55~
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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/java-common.git



More information about the pkg-java-commits mailing list