Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#13284 closed defect (fixed)

`port variants` should fail when no port is found

Reported by: gui-dos (Guido Soranzio) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.6
Component: base Version: 1.5.2
Keywords: Cc: nox@…, skymoo (Adam Mercer)
Port:

Description

"no port found" is reported erroneously when a port has no variants:

% port variants iconv

No port iconv found.
iconv has no variants

Change History (5)

comment:1 Changed 16 years ago by nox@…

Cc: nox@… added
Summary: BUG: base-1.5.2 : "no port found" reported when a port has no variants`port variants` should fail when no port is found

No, "iconv" does not exist, libiconv does.

Please note that this produces a huge error with trunk/:

No port iconv found.
can't read "portinfo(porturl)": no such element in array
    while executing
"set porturl $portinfo(porturl)"
    ("uplevel" body line 15)
    invoked from within
"uplevel 1 $block"
    (procedure "foreachport" line 16)
    invoked from within
"foreachport $portlist {
        # search for port
        if {[catch {mportsearch $portname no exact} result]} {
            global errorInfo
        ..."
    (procedure "action_variants" line 4)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 60)
    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 "/opt/local/bin/port" line 2641)

comment:2 Changed 16 years ago by skymoo (Adam Mercer)

Cc: ram@… added

comment:3 Changed 16 years ago by jmpp@…

Resolution: fixed
Status: newclosed

Thanks for the report, fixed in r31358. Will merge to 1.6 release branch next. Closing ticket.

-jmpp

comment:4 Changed 15 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

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

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