Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 113956

Summary: java-config should set return code for -p results
Product: Gentoo Linux Reporter: Josh Nichols (RETIRED) <nichoj>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: A patch containing a simple fix, to be reviewed.

Description Josh Nichols (RETIRED) gentoo-dev 2005-11-29 15:58:28 UTC
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.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2006-08-05 04:05:52 UTC
Fixed in java-config-2. This fix could probably be backported to java-config-1 too.
Comment 2 Jose San Leandro 2006-08-05 04:55:16 UTC
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.
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-09-05 08:07:21 UTC
java-config-1 is deprecated in favor of java-config-2.