Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82227 - emerge --search output
Summary: emerge --search output
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-16 02:58 UTC by Peter Hyman
Modified: 2005-04-26 19:16 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Hyman 2005-02-16 02:58:45 UTC
This is a feature request. emerge --search produces long output which can scroll off the screen. There are two features that might make this more useful.
1) add a --pause switch which would have the effect of 
emerge --search <package> |less
this way the user could scroll the list. This is similar to the way etc-update handles proposed changes.
2) add a --brief switch for --search so output could be limited to one line in a fashion similar to the way --pretend does. This will also limit scroll.

Reproducible: Always
Steps to Reproduce:
1. emerge --search <package>
2.
3.

Actual Results:  
long format data can scroll off screen

Expected Results:  
(well, desired results)
1) emerge --search |less
emerge --search --pause
2) or a brief one-line per package output
emerge --search --brief 

The two options can be combined incase the <package> regex has many items.

A brief format for --search could be

<package name> <installed version> <available version> <description>

JM2C
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2005-02-16 18:36:51 UTC
I suppose versions could be added to that, but the descriptions are not
really short or predictable.


carpaski@fenchurch ~ $ emerge -sq portage

Searching...
[ Results for search key : portage ]
[ Applications found : 4 ]

*  app-portage/portage-manpages
*  app-portage/portage-prefpane [ Masked ]
*  app-portage/portagemaster
*  sys-apps/portage
Comment 2 Peter Hyman 2005-02-17 04:29:06 UTC
Ouch, my bad! I did not see the -q option. :( But I see the problem with descriptions. I suppose, without getting overly complicated, you _might_ be able to format the output to fit in an 80 column format and have fixed locations for each variable and truncate if too long????? Anyway, it's just a thought. I think having versioning and installation information is important and descriptions beneficial!
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-26 17:30:07 UTC
I don't see a need for --pause if emerge -s foo | less does the trick...
Comment 4 SpanKY gentoo-dev 2005-04-26 19:16:36 UTC
agreed, that's what PAGER's are for