[MacPorts] #13673: port info --index does not work with 'current'
pseudo-port
MacPorts
trac at macosforge.org
Fri Dec 21 11:46:09 PST 2007
#13673: port info --index does not work with 'current' pseudo-port
-------------------------------------+--------------------------------------
Reporter: ryandesign at macports.org | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: MacPorts base bugs
Component: base | Version: 1.7.0
Keywords: |
-------------------------------------+--------------------------------------
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.
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13673>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list