Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127805 - add USE flag lookup support to emerge --ask
Summary: add USE flag lookup support to emerge --ask
Status: RESOLVED DUPLICATE of bug 84884
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-27 18:40 UTC by Jasper Bryant-Greene
Modified: 2006-04-02 05:48 UTC (History)
2 users (show)

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


Attachments
patch to support use-lookup from --ask (emerge.diff,1.41 KB, patch)
2006-03-27 18:41 UTC, Jasper Bryant-Greene
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jasper Bryant-Greene 2006-03-27 18:40:48 UTC
I have a patch (will attach in a minute) against portage 2.0.54 which adds a third option to the --ask prompt, "Use", which allows looking up USE flags without leaving emerge. I think this will increase the number of users that make use of the great flexibility offered by USE flags.

I may not have gone about this in the best possible way, as I am calling grep to look through /usr/portage/profiles/use.desc. If there is a better way (internal portage function?) then please let me know and I'll re-do the patch.

Also, if you want the patch against a newer version of portage (I only have access to 2.0.54 at the moment until I go home this evening) let me know.
Comment 1 Jasper Bryant-Greene 2006-03-27 18:41:50 UTC
Created attachment 83274 [details, diff]
patch to support use-lookup from --ask
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2006-04-02 05:38:32 UTC
What's the advantage of this patch over a simple grep $USEFLAG $PORTDIR/profiles/use{.local}.desc? You're basically giving the user a prompt which asks him which flag he'd like to look up. I lack to see why this should happen inside portage -- there are already existing tools like ufed who do this job as well.
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2006-04-02 05:48:59 UTC

*** This bug has been marked as a duplicate of 84884 ***