Changeset 1452 for trunk/base
- Timestamp:
- Dec 18, 2002, 3:43:18 AM (21 years ago)
- Location:
- trunk/base/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/darwinports1.0/darwinportsui.tcl
r420 r1452 109 109 # must pass "-nonewline" as the second argument. 110 110 111 proc ui_puts { str {nonl ""}} {111 proc ui_puts {chan str {nonl ""}} { 112 112 if ![ui_enabled] return 113 113 114 114 if {$nonl == "-nonewline"} { 115 puts -nonewline stdout"$str"116 flush stdout115 puts -nonewline $chan "$str" 116 flush $chan 117 117 } else { 118 puts "$str"118 puts $chan "$str" 119 119 } 120 120 } … … 134 134 135 135 if [isset ports_verbose] { 136 ui_puts "$str" $nonl136 ui_puts stdout "$str" $nonl 137 137 } 138 138 } … … 143 143 144 144 if ![isset ports_quiet] { 145 ui_puts "$str" $nonl145 ui_puts stdout "$str" $nonl 146 146 } 147 147 } … … 149 149 # Output message unconditionally as an error message. 150 150 proc ui_error {str} { 151 ui_puts "Error: $str"151 ui_puts stderr "Error: $str" 152 152 } 153 153 … … 173 173 set satisfaction no 174 174 while {$satisfaction == "no"} { 175 ui_puts $promptstr -nonewline175 ui_puts stdout $promptstr -nonewline 176 176 if {[ui_gets mystr] == 0} { 177 177 if {[string length $defvalue] > 0} { … … 199 199 # "promptstr". There is no return value. 200 200 proc ui_confirm {promptstr} { 201 ui_puts "$promptstr" -nonewline201 ui_puts stdout "$promptstr" -nonewline 202 202 ui_gets garbagestr 203 203 } -
trunk/base/src/port1.0/portutil.tcl
r1450 r1452 622 622 if [catch {flock $fd -exclusive -noblock} result] { 623 623 if {"$result" == "EAGAIN"} { 624 ui_ puts"Waiting for lock on $statefile"624 ui_msg "Waiting for lock on $statefile" 625 625 } elseif {"$result" == "EOPNOTSUPP"} { 626 626 # Locking not supported, just return
Note: See TracChangeset
for help on using the changeset viewer.