#16146: port gohome spews lots of errors if port doesn't have homepage variable -------------------------------------+-------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.7.0 Keywords: | -------------------------------------+-------------------------------------- `port gohome` returns lots of lines of errors if the port doesn't define the `homepage` variable. Yes, that variable is required according to `port lint`, but it would still be nice if this error spew could be reduced down to just one line: {{{ $ port gohome arts can't read "portinfo(homepage)": no such element in array while executing "set homepage $portinfo(homepage)" ("gohome" arm line 5) invoked from within "switch -- $action { cat { # Copy the portfile to standard output set f [open $portfile RDONLY]..." invoked from within "if {[file readable $portfile]} { switch -- $action { cat { # Copy the portfile to standard output ..." ("uplevel" body line 25) invoked from within "uplevel 1 $block" (procedure "foreachport" line 16) invoked from within "foreachport $portlist { # If we have a url, use that, since it's most specific, otherwise try to map the portname to a url if {$portur..." (procedure "action_portcmds" line 12) 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 3207) }}} I'm using MacPorts trunk @38780. -- Ticket URL: <http://trac.macports.org/ticket/16146> MacPorts <http://www.macports.org/> Ports system for Mac OS