<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/61494a321ef14713bf0e16316aadda9c3d7a5afc">https://github.com/macports/macports-base/commit/61494a321ef14713bf0e16316aadda9c3d7a5afc</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 61494a321ef14713bf0e16316aadda9c3d7a5afc
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Dec 12 02:22:04 2016 +1100
<span style='display:block; white-space:pre;color:#404040;'> Brace and simplify a few expressions
</span>---
src/port/port.tcl | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port/port.tcl b/src/port/port.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index c95b612..df06599 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port/port.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port/port.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3610,7 +3610,7 @@ proc action_variants { action portlist opts } {
</span> }
if {[info exists vdescription]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- puts [wraplabel "$varmodifier$v" [string trim $vdescription] 0 [string repeat " " [expr 5 + [string length $v]]]]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts [wraplabel "$varmodifier$v" [string trim $vdescription] 0 [string repeat " " [expr {5 + [string length $v]}]]]
</span> } else {
puts "$varmodifier$v"
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4835,9 +4835,8 @@ proc process_command_file { in } {
</span> global current_portdir
# Initialize readline
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set isstdin [string match $in "stdin"]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set name "port"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set use_readline [expr {$isstdin && [readline init $name]}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set isstdin [expr {$in eq "stdin"}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set use_readline [expr {$isstdin && [readline init "port"]}]
</span> set history_file [file normalize "${macports::macports_user_dir}/history"]
# Read readline history
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4847,7 +4846,7 @@ proc process_command_file { in } {
</span> }
# Be noisy, if appropriate
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set noisy [expr $isstdin && ![macports::ui_isset ports_quiet]]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set noisy [expr {$isstdin && ![macports::ui_isset ports_quiet]}]
</span> if { $noisy } {
puts "MacPorts [macports::version]"
puts "Entering interactive mode... (\"help\" for help, \"quit\" to quit)"
</pre><pre style='margin:0'>
</pre>