Bug#929105: java-common: update-java-alternatives should not propagate return code of update-alternatives

2019-07-17 Thread Emmanuel Bourg
Le 17/05/2019 à 10:09, Christopher Huhn a écrit :

> 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:
> 
> 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.

Hi Christopher,

I'm unable to reproduce this error. What JDK packages did you install on
your system?

Emmanuel Bourg



Bug#929105: java-common: update-java-alternatives should not propagate return code of update-alternatives

2019-05-17 Thread Christopher Huhn
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