Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292113 - app-admin/eselect-{rails,ruby}: support brief output mode
Summary: app-admin/eselect-{rails,ruby}: support brief output mode
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 154511
  Show dependency tree
 
Reported: 2009-11-06 14:28 UTC by Ulrich Müller
Modified: 2010-01-16 17:21 UTC (History)
1 user (show)

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


Attachments
Patch for ruby and rails eselect modules (0001-Support-eselect-brief-output-mode-bug-292113.patch,3.50 KB, patch)
2009-12-19 08:19 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2009-11-06 14:28:29 UTC
eselect-1.2* now has a brief output mode (with option --brief), mainly intended for calling eselect from programs. Support for this requires some changes in modules, mainly in the "list" action:

- The "*" next to the active item should not be explicitly added. Use the
  "highlight_marker" function instead.
- In case of an empty list, nothing should be output if in brief output mode.
  Function write_numbered_list has a new "-m" option that will handle output
  modes correctly.

Documentation of the new features can be found in <http://www.gentoo.org/proj/en/eselect/dev-guide.xml>. Also see the tracker bug for details, especially bug 154511 comment #5 for a typical example of a do_list() function.

Please note that the ebuild of the fixed module should have a >=app-admin/eselect-1.2.3 dependency.
Comment 1 Ulrich Müller gentoo-dev 2009-12-19 08:19:28 UTC
Created attachment 213451 [details, diff]
Patch for ruby and rails eselect modules
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-12-21 11:57:11 UTC
(In reply to comment #1)
> Created an attachment (id=213451) [details]
> Patch for ruby and rails eselect modules
> 

Thanks, added to our git and scheduled for the next releases.

commit d98c32c615b8179dd5fdb6fbf786a67f920287f6
Author: Ulrich Mueller <ulm@gentoo.org>
Date:   Sat Dec 19 09:20:19 2009 +0100

    Support eselect --brief output mode, bug 292113.
    
    Signed-off-by: Ulrich Mueller <ulm@gentoo.org>
    Signed-off-by: Alex Legler <a3li@gentoo.org>
Comment 3 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-12-25 15:10:10 UTC
Fixed in the tree in eselect-ruby-20091225
Comment 4 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-01-16 17:21:04 UTC
Stable distribution has this feature now. Closing.