Opened 9 years ago

Last modified 6 years ago

#51092 assigned enhancement

Add search key and pseudo-port selector for port groups

Reported by: raimue (Rainer Müller) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone: MacPorts Future
Component: base Version:
Keywords: hasbranch Cc: mojca (Mojca Miklavec), ci42, kurthindenburg (Kurt Hindenburg)
Port:

Description (last modified by raimue (Rainer Müller))

Similar to other field selectors it should be possible to select ports by which port groups they require. This should work with the port actions search and info as well as with a new pseudo-port selector.

Example Portfile:

PortGroup foo 1.0
PortGroup bar 1.5

name      blah
...

Expected commands and output:

$ port echo portgroup:foo
blah
$ port echo groups:bar
blah
$ port search --groups foo
blah @...
   ...
$ port info --groups blah
groups: foo 1.0, bar 1.5

The field PortInfo(portgroups) already exists. It is just not written into the PortIndex. It is currently a nested list of port groups and the corresponding version: {{foo 1.0} {bar 1.5}}.

Change History (6)

comment:1 Changed 9 years ago by raimue (Rainer Müller)

Description: modified (diff)

comment:2 Changed 9 years ago by raimue (Rainer Müller)

Keywords: hasbranch added
Status: newassigned

Work started on branch portgroups-selector.

comment:3 Changed 9 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

comment:4 Changed 8 years ago by ci42

Cc: ci42 added

comment:5 Changed 7 years ago by raimue (Rainer Müller)

Milestone: MacPorts Future

comment:6 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

can you upload a diff or perhaps add a git branch? Trying to figure out what changes you made in the svn branch is difficult.

Note: See TracTickets for help on using tickets.