[MacPorts] #13673: port info --index does not work with 'current' pseudo-port

MacPorts noreply at macports.org
Wed Dec 10 22:10:31 PST 2008


#13673: port info --index does not work with 'current' pseudo-port
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  macports-tickets@…                   
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:  MacPorts base bugs                   
Component:  base                     |     Version:  1.7.0                                
 Keywords:                           |        Port:                                       
-------------------------------------+--------------------------------------
Changes (by perry@…):

 * cc: perry@… (added)


Comment:

 Disclaimer: This is my first time looking at proc foreachport and proc
 action_info so I may be (completely) wrong ;).

 The error message may be a little misleading; it's not returned because
 the 'current' pseudo-port is asked for, but because portinfo is unset.

 The other pseudo-ports, such as installed, work because they pass a
 portlist that contains portspecs with *no* porturl set ($portspec(url) ==
 "").  When no porturl is set, an if block in action_info is executed that
 uses mportsearch to return portinfo, an array that contains the associated
 information in PortIndex.

 The all pseudo-port uses the proc get_all_ports to populate portlist with
 portspecs that contain a url key.  As a result, the if block is never
 executed, and information from the PortIndex is not read.

-- 
Ticket URL: <http://trac.macports.org/ticket/13673#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list