Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382693 - app-admin/eselect: describe_x_options not working as expected.
Summary: app-admin/eselect: describe_x_options not working as expected.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-09-12 13:07 UTC by Ralph Sennhauser (RETIRED)
Modified: 2011-09-26 16:55 UTC (History)
0 users

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


Attachments
eselect module producing buggy output. (eselect-option-test.eselect,814 bytes, text/plain)
2011-09-12 13:07 UTC, Ralph Sennhauser (RETIRED)
Details
Patch that should fix the problem (eselect.patch,780 bytes, patch)
2011-09-18 08:48 UTC, Ulrich Müller
Details | Diff

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