Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113956 - java-config should set return code for -p results
Summary: java-config should set return code for -p results
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-29 15:58 UTC by Josh Nichols (RETIRED)
Modified: 2006-09-05 08:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
A patch containing a simple fix, to be reviewed. (jc_options.py.patch,428 bytes, patch)
2006-08-05 04:55 UTC, Jose San Leandro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.