openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #11666
Bug#813906: icedtea-netx: wrong logic in .postinst
Package: icedtea-netx
Version: 1.6.2-1
Followup-For: Bug #813906
Dear Maintainer,
I suspect a trouble in .postinst script.
Here is my suggest:
# 7's priority is higher, but 7 is not installed, set it to 8
if [ $priority7 -gt $priority8 ] && [ ! -f $base7dir/jre/bin/$i ]; then
update-alternatives --set $i $base8dir/jre/bin/$i
fi
# 8's priority is higher, but 8 is not installed, set it to 7
if [ $priority8 -gt $priority7 ] && [ ! -f $base8dir/jre/bin/$i ]; then
update-alternatives --set $i $base7dir/jre/bin/$i
fi
Regards,
Patrice
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.4.0-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages icedtea-netx depends on:
ii icedtea-netx-common 1.6.2-1
ii openjdk-7-jre 7u95-2.6.4-1
ii openjdk-8-jre 8u72-b15-2
icedtea-netx recommends no packages.
icedtea-netx suggests no packages.
-- no debconf information