Changeset 79365
- Timestamp:
- 06/11/11 05:54:24 (4 years ago)
- File:
-
- 1 edited
-
trunk/base/src/port/port.tcl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port/port.tcl
r79349 r79365 199 199 } 200 200 201 proc filesize {fil {unit {}}} { 202 set siz {@} 203 catch { 204 set siz [bytesize [file size $fil] $unit] 205 } 206 return $siz 207 } 201 208 202 209 # Produce an error message, and exit, unless … … 3103 3110 3104 3111 proc action_contents { action portlist opts } { 3105 set status 03112 global global_options 3106 3113 if {[require_portlist portlist]} { 3107 3114 return 1 3108 3115 } 3116 if {[info exists global_options(ports_contents_size)]} { 3117 set units {} 3118 if {[info exists global_options(ports_contents_units)]} { 3119 set units [complete_size_units $global_options(ports_contents_units)] 3120 } 3121 set outstring {[format "%12s $file" [filesize $file $units]]} 3122 } else { 3123 set outstring { $file} 3124 } 3125 3109 3126 foreachport $portlist { 3110 3127 if { ![catch {set ilist [registry::installed $portname]} result] } { … … 3117 3134 ui_notice "Port $portname contains:" 3118 3135 foreach file $files { 3119 puts " $file"3136 puts [subst $outstring] 3120 3137 } 3121 3138 } else { … … 3128 3145 registry::close_file_map 3129 3146 3130 return $status3147 return 0 3131 3148 } 3132 3149 … … 4014 4031 maintainer maintainers name platform platforms portdir pretty 4015 4032 replaced_by revision variant variants version} 4033 contents {size {units 1}} 4016 4034 deps {index no-build} 4017 4035 rdeps {index no-build full}
Note: See TracChangeset
for help on using the changeset viewer.

