Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #13673 (new defect)

Opened 11 months ago

Last modified 11 months ago

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

maintainers.php (1.9 KB) - added by ryandesign@… 11 months ago.
print list of all port maintainers

Change History

Changed 11 months ago by ryandesign@…

I wrote a PHP script to list all the maintainers. It runs in under 2 seconds.

Changed 11 months ago by ryandesign@…

print list of all port maintainers

Note: See TracTickets for help on using tickets.