Changeset 29223 for trunk/base


Ignore:
Timestamp:
Sep 18, 2007, 3:15:23 AM (12 years ago)
Author:
jmpp@…
Message:

Default implementation for ui_channels should return stderr for the debug priority
and stdout for info.

Unfortunately, this change produces some odd behavior if a library client does not
provide its own ui_channels proc (every message turns into debug), but I can't figure
out why so I'm hoping others can take a look at it and correct the "glitch".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/macports.tcl

    r29210 r29223  
    158158proc macports::ui_channels_default {priority} {
    159159    switch $priority {
    160         debug -
     160        debug {
     161            return {stderr}
     162        }
    161163        info {
    162             return {}
     164            return {stdout}
    163165        }
    164166        msg {
     
    335337    # Configure the search path for configuration files
    336338    set conf_files ""
    337         if {[info exists env(PORTSRC)]} {
     339    if {[info exists env(PORTSRC)]} {
    338340        set PORTSRC $env(PORTSRC)
    339341        lappend conf_files ${PORTSRC}
    340342    }
    341343    if { [file isdirectory macports_user_dir] } {
    342     lappend conf_files "${macports_user_dir}/macports.conf"
     344        lappend conf_files "${macports_user_dir}/macports.conf"
    343345    }
    344346    lappend conf_files "${macports_conf_path}/macports.conf"
Note: See TracChangeset for help on using the changeset viewer.