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

Bug 292099

Summary: app-admin/eselect-boost: support brief output mode
Product: Gentoo Linux Reporter: Ulrich Müller <ulm>
Component: Current packagesAssignee: Tiziano Müller (RETIRED) <dev-zero>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: cpp+disabled, eselect, esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 154511    
Attachments: support --brief output

Description Ulrich Müller gentoo-dev 2009-11-06 14:10:18 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 Łukasz Michalik 2009-12-03 10:20:49 UTC
Created attachment 211850 [details, diff]
support --brief output

Although I don't neceserly see the point in that wrt to boost, here's the easy patch.
Comment 2 Ulrich Müller gentoo-dev 2009-12-03 10:33:18 UTC
(In reply to comment #1)
> Although I don't neceserly see the point in that wrt to boost,

Modules should behave in a consistent way?

> here's the easy patch.

Thanks.