java-config-1.2.11 does not set an appropriate (non-zero) return code when running java-config -p. Example: # java-config -p blarg Could not find package blarg # echo $? 0 Note: this does behave as expected for axxo's branch of java-config-ng.
Fixed in java-config-2. This fix could probably be backported to java-config-1 too.
Created attachment 93490 [details, diff] A patch containing a simple fix, to be reviewed. I just added the sys.exit(1). I don't know if that fits into java-config design.
java-config-1 is deprecated in favor of java-config-2.