Changeset 138949 for trunk/base


Ignore:
Timestamp:
Jul 24, 2015, 9:53:57 PM (5 years ago)
Author:
raimue@…
Message:

macports1.0: Handle multi-line messages for log file

For log messages with mulitple lines, repeat log level and phase for each line.
Assume that messages with -nonewline actually do not contain multiple lines.

File:
1 edited

Legend:

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

    r138948 r138949  
    247247            puts -nonewline $chan $strprefix[lindex $args 1]
    248248        } else {
    249             puts $chan $strprefix[lindex $args 0]
     249            foreach str [split [lindex $args 0] "\n"] {
     250                puts $chan $strprefix$str
     251            }
    250252        }
    251253    }
Note: See TracChangeset for help on using the changeset viewer.