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

Bug 382693

Summary: app-admin/eselect: describe_x_options not working as expected.
Product: Gentoo Hosted Projects Reporter: Ralph Sennhauser (RETIRED) <sera>
Component: eselectAssignee: Gentoo eselect Team <eselect>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: eselect module producing buggy output.
Patch that should fix the problem

Description Ralph Sennhauser (RETIRED) gentoo-dev 2011-09-12 13:07:14 UTC
Created attachment 286219 [details]
eselect module producing buggy output.

The attached testcase produce the following output on a multilib system:

#########
Usage: eselect eselect-option-test <action> <options>

Standard actions:
  help                      Display help text
  usage                     Display usage information
  version                   Display version information

Extra actions:
  set <32bit|64bit> <plugin>
                            Test is_multilib in * options
    plugin                    Handle or number in plugin list
##########

Expected:
The 32bit and 64bit option descriptions are visible as well.
Comment 1 Ulrich Müller gentoo-dev 2011-09-16 05:44:47 UTC
That's a tricky one: 
Your is_multilib() gets called from within show_usage_message() where IFS is redefined. Therefore ${libdirs} is passed to has() not a separate words, but as a single parameter.
Comment 2 Ulrich Müller gentoo-dev 2011-09-18 08:48:12 UTC
Created attachment 286871 [details, diff]
Patch that should fix the problem

Does attached patch fix the problem for you?
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2011-09-18 09:25:08 UTC
(In reply to comment #2)
> Created attachment 286871 [details, diff]
> Patch that should fix the problem
> 
> Does attached patch fix the problem for you?

The proposed patch does fix this issue for me.

Thanks.
Comment 4 Ulrich Müller gentoo-dev 2011-09-18 10:03:56 UTC
Fixed in SVN (revision 839).
Comment 5 Ulrich Müller gentoo-dev 2011-09-26 16:55:39 UTC
This is fixed in eselect-1.2.18.
Thank you for the bug report.