Ticket #18719: port.tcl.diff
File port.tcl.diff, 1.3 KB (added by blb@…, 16 years ago) |
---|
-
port
old new 39 39 package require macports 40 40 package require Pextlib 1.0 41 41 42 trace add execution exit enter exit_cleanup 43 44 proc exit_cleanup {commandstring op} { 45 global exit_status ::debuglog ::debuglogname 46 if {[info exists ::debuglog]} { 47 close $::debuglog 48 if {$exit_status == 0} { 49 file delete -force $::debuglogname 50 } else { 51 puts "See the debug log at $::debuglogname" 52 } 53 } 54 } 55 42 56 43 57 # Standard procedures 44 58 proc print_usage {args} { … … 157 171 } 158 172 } 159 173 174 proc ui_channels {priority} { 175 global ::debuglog ::debuglogname 176 set default_channel [macports::ui_channels_default $priority] 177 if {![info exists ::debuglog]} { 178 set ::debuglogname [mktemp /tmp/macports_debug.XXXXXX] 179 set ::debuglog [open $::debuglogname w] 180 } 181 return [concat $default_channel $::debuglog] 182 } 160 183 161 184 # Form a composite version as is sometimes used for registry functions 162 185 proc composite_version {version variations {emptyVersionOkay 0}} { … … 3604 3627 set global_options_base [array get global_options] 3605 3628 3606 3629 # First process any remaining args as action(s) 3630 global exit_status 3607 3631 set exit_status 0 3608 3632 if { [llength $remaining_args] > 0 } { 3609 3633