Bug#929105: java-common: update-java-alternatives should not propagate return code of update-alternatives
Christopher Huhn
c.huhn at gsi.de
Fri May 17 09:09:30 BST 2019
Package: java-common
Version: 0.71
Severity: normal
update-java-alternatives --set ... propagates the exit code of its last call to update-alternatives as its own exit code.
In my test case that is:
> root# update-alternatives --quiet --set serialver /usr/lib/jvm/java-11-openjdk-amd64/bin/serialver; echo $?
> update-alternatives: error: no alternatives for serialver
> 2
AFAICT this is normal behaviour for update-java-alternatives and therefore it should exit with 0.
Suggested fix: add a colon at the end of do_set.
Kind regards
Christopher
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.16.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE=en_US.UTF-8 (charmap=locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
java-common depends on no packages.
java-common recommends no packages.
Versions of packages java-common suggests:
ii default-jre 2:1.11-71
More information about the pkg-java-maintainers
mailing list