Summary: | portageq: Implement --match option for commands expecting cpv | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | CONFIRMED --- | ||
Severity: | minor | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | a bash script that connects portageq match to portageq contents |
Description
Arfrever Frehtes Taifersar Arahesis (RETIRED)
2007-12-21 21:12:30 UTC
I was intending to make it a relatively low-level function (like most other portageq functions) without any matching support. You can use the results from something like `portageq match / <atom>` if you don't know which packages to feed to portageq contents. The portageq metadata function is similar. Both assume that you are querying a single specific package. Created attachment 139067 [details]
a bash script that connects portageq match to portageq contents
My intention was to provide the ability to write scripts similar to this one.
Perhaps we should implement a new command or option. For example, we could create a --contents option for the match command. (In reply to comment #3) > Perhaps we should implement a new command or option. For example, we could > create a --contents option for the match command. I wouldn't like that at all. The opposite (a --match option for commands expecting a cpv) however would be ok with me and seems more useful anyway. But I guess the complaint is more about the misleading help text. (In reply to comment #4) > (In reply to comment #3) > > Perhaps we should implement a new command or option. For example, we could > > create a --contents option for the match command. > > I wouldn't like that at all. The opposite (a --match option for commands > expecting a cpv) however would be ok with me and seems more useful anyway. +1 So, what kind of match should it be: highest match, or all matches? I guess it makes sense to show all matches and just concatenate the outputs from each of the matches. |