Changeset 29207 for trunk/base


Ignore:
Timestamp:
Sep 17, 2007, 3:26:12 PM (12 years ago)
Author:
jmpp@…
Message:

All these macports1.0 clients use the default ui_prefix implementation, so no need to duplicate
all that code in each of them.

Location:
trunk/base/src/port
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port/port.tcl

    r29191 r29207  
    4747# ui_options(ports_quiet) - If set, don't output "standard messages"
    4848
    49 # UI Callback
    50 proc ui_prefix {priority} {
    51     switch $priority {
    52         debug {
    53             return "DEBUG: "
    54         }
    55         error {
    56             return "Error: "
    57         }
    58         warn {
    59             return "Warning: "
    60         }
    61         default {
    62             return ""
    63         }
    64     }
    65 }
    66 
    6749proc ui_channels {priority} {
    6850    global ui_options
  • trunk/base/src/port/portindex.tcl

    r29191 r29207  
    2828# ui_options(ports_verbose) - If set, output info messages (ui_info)
    2929# ui_options(ports_quiet) - If set, don't output "standard messages"
    30 
    31 # UI Callback
    32 proc ui_prefix {priority} {
    33     switch $priority {
    34         debug {
    35             return "DEBUG: "
    36         }
    37         error {
    38             return "Error: "
    39         }
    40         warn {
    41             return "Warning: "
    42         }
    43         default {
    44             return ""
    45         }
    46     }
    47 }
    4830
    4931proc ui_channels {priority} {
  • trunk/base/src/port/portmirror.tcl

    r29191 r29207  
    2525# ui_options(ports_verbose) - If set, output info messages (ui_info)
    2626# ui_options(ports_quiet) - If set, don't output "standard messages"
    27 
    28 
    29 # UI Callback
    30 proc ui_prefix {priority} {
    31     switch $priority {
    32         debug {
    33             return "DEBUG: "
    34         }
    35         error {
    36             return "Error: "
    37         }
    38         warn {
    39             return "Warning: "
    40         }
    41         default {
    42             return ""
    43         }
    44     }
    45 }
    4627
    4728proc ui_channels {priority} {
Note: See TracChangeset for help on using the changeset viewer.