Ticket #13673 (new defect)
port info --index does not work with 'current' pseudo-port
| Reported by: | ryandesign@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts base bugs |
| Component: | base | Version: | 1.7.0 |
| Keywords: | Cc: | ||
| Port: |
Description
I want to get the list of all port maintainers. That should be doable like this:
port -q info --index --maintainer all | sed s/,//g | xargs -n 1 echo | sort | uniq
However, that doesn't work because
port -q info --index --maintainer all
prints the error message
Warning: port info --index does not work with 'current' pseudo-port
4400 times. (That's how many ports we have right now.)
Why this error message? I didn't ask for the 'current' pseudo-port; I asked for the 'all' pseudo-port.
I was able to get the list of all maintainers using
port echo all | xargs port -q info --index --maintainer | sed s/,//g | xargs -n 1 echo | sort | uniq
but this is not optimal; it took 9 minutes to run. All the information is in the PortIndex; it should just be able to open the single file, parse the 8800 lines to find all the maintainers, and spit them out, and it shouldn't take that long to do it.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

