blob: 01698fc269ee2112bb1998044deda9317ad3faef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
set -e
multiarch=@multiarch@
old_basedir=/usr/lib/jvm/java-7-openjdk
jdk_hl_tools='apt extcheck idlj jar jarsigner javac javadoc javah javap jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii rmic schemagen serialver wsgen wsimport xjc'
case "$1" in
upgrade)
if [ -n "$multiarch" ] && [ -n "$2" ]; then
for i in $jdk_hl_tools; do
if [ -n "$(update-alternatives --list $i 2>/dev/null | grep ^$old_basedir/)" ]; then
update-alternatives --remove $i $old_basedir/bin/$i || true
fi
done
fi
;;
esac
#DEBHELPER#
exit 0
|