Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#15515 closed defect (fixed)

"port provides" broken in trunk

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version: 1.7.0
Keywords: Cc: raimue (Rainer Müller)
Port:

Description

"port provides" seems to be broken in trunk (@37376). Not sure yet when this problem appeared. This is with Mac OS X 10.4.11 and Xcode 2.4.1 on Intel.

$ /mp/bin/port provides foo
list must have an even number of elements
    while executing
"array set portspec { foo }"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 "array set portspec { $portspec }""
    (procedure "foreachport" line 6)
    invoked from within
"foreachport $portlist {
        set file [compat filenormalize $portname]
        if {[file exists $file]} {
            if {![file isdirectory $file]..."
    (procedure "action_provides" line 9)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 86)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command

    # Exit immediately, by default, unless..."
    (file "/mp/bin/port" line 3165)
$

Change History (5)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: raimue@… added

It looks like r37238 caused this.

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

Owner: changed from macports-tickets@… to raimue@…
Status: newassigned

comment:3 Changed 16 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: assignedclosed

Sorry, that was my mistake. While I changed the definition of the action to get an unexpanded argument list, I didn't change the action itself to operate on a list of strings instead of ports. Thanks for the report.

Fixed in r37386.

comment:4 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:5 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.7.0
Note: See TracTickets for help on using tickets.