Changeset 24551
- Timestamp:
- 2007-04-27 17:48:09 (19 months ago)
- Files:
-
- 1 modified
-
trunk/base/src/port/port.tcl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port/port.tcl
r23967 r24551 1884 1884 require_portlist portlist 1885 1885 foreachport $portlist { 1886 # Verify the portname, getting portinfo to map to a porturl 1887 if {[catch {set res [dportsearch $portname no exact]} result]} { 1888 global errorInfo 1889 ui_debug "$errorInfo" 1890 break_softcontinue "search for portname $portname failed: $result" 1 status 1891 } 1892 if {[llength $res] < 2} { 1893 break_softcontinue "Port $portname not found" 1 status 1894 } 1895 array set portinfo [lindex $res 1] 1896 1886 1897 # If we have a url, use that, since it's most specific 1887 1898 # otherwise try to map the portname to a url 1888 1899 if {$porturl == ""} { 1889 # Verify the portname, getting portinfo to map to a porturl1890 if {[catch {set res [dportsearch $portname no exact]} result]} {1891 global errorInfo1892 ui_debug "$errorInfo"1893 break_softcontinue "search for portname $portname failed: $result" 1 status1894 }1895 if {[llength $res] < 2} {1896 break_softcontinue "Port $portname not found" 1 status1897 }1898 array set portinfo [lindex $res 1]1899 1900 set porturl $portinfo(porturl) 1900 1901 } … … 1968 1969 puts $portfile 1969 1970 } 1971 1972 homepage { 1973 set homepage $portinfo(homepage) 1974 if { $homepage != "" } { 1975 puts $homepage 1976 } elseif { [ui_isset ports_verbose] } { 1977 puts "(no homepage)" 1978 } 1979 } 1980 1981 gohome { 1982 set homepage $portinfo(homepage) 1983 if { $homepage != "" } { 1984 # TODO we should autoconfigure this, and perhaps leave an option for 1985 # a different command to visit the homepage 1986 system "/usr/bin/open $homepage" 1987 } else { 1988 puts "(no homepage)" 1989 } 1990 } 1970 1991 } 1971 1992 } else { … … 2136 2157 url action_portcmds 2137 2158 file action_portcmds 2159 homepage action_portcmds 2160 gohome action_portcmds 2138 2161 2139 2162 depends action_target

