Ticket #16146: patch-port-gohome.diff
File patch-port-gohome.diff, 1.4 KB (added by raimue (Rainer Müller), 16 years ago) |
---|
-
port/port.tcl
2377 2377 } 2378 2378 2379 2379 gohome { 2380 # Get the homepage for the port by opening the portfile 2381 if {![catch {set ctx [mportopen $porturl]} result]} { 2382 array set portinfo [mportinfo $ctx] 2380 set homepage "" 2381 2382 # Get the homepage as read from PortIndex 2383 if {[info exists portinfo(homepage)]} { 2383 2384 set homepage $portinfo(homepage) 2385 } 2386 2387 # If not available, get the homepage for the port by opening the Portfile 2388 if {$homepage == "" && ![catch {set ctx [mportopen $porturl]} result]} { 2389 array set portinfo [mportinfo $ctx] 2390 if {[info exists portinfo(homepage)]} { 2391 set homepage $portinfo(homepage) 2392 } 2384 2393 mportclose $ctx 2385 2394 } 2386 2395 2387 2396 # Try to open a browser to the homepage for the given port 2388 set homepage $portinfo(homepage)2389 2397 if { $homepage != "" } { 2390 2398 system "${macports::autoconf::open_path} $homepage" 2391 2399 } else {