<pre style='margin:0'>
Umesh Singla (umeshksingla) pushed a commit to branch gsoc17-migrate
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/6a58ee7291c2eda07e62c5065a9eefa815eff22d">https://github.com/macports/macports-base/commit/6a58ee7291c2eda07e62c5065a9eefa815eff22d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 6a58ee7291c2eda07e62c5065a9eefa815eff22d
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Sun Jan 7 15:26:49 2018 +0100
<span style='display:block; white-space:pre;color:#404040;'> restore: Clean up output
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The MacPorts version does not matter when restoring a set of ports.
</span><span style='display:block; white-space:pre;color:#404040;'> Remove it.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Instead of printing a list of ports using 'puts', switch to 'ui_msg' and
</span><span style='display:block; white-space:pre;color:#404040;'> add a header line. This should make the output look much nicer.
</span>---
src/macports1.0/restore.tcl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/restore.tcl b/src/macports1.0/restore.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 9f8566a..05e1a25 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/restore.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/restore.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -275,10 +275,11 @@ namespace eval restore {
</span>
proc restore_state {snapshot_portlist} {
set sorted_snapshot_portlist [portlist_sort_dependencies_first $snapshot_portlist]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "Installing ports:"
</span> foreach port $sorted_snapshot_portlist {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- puts "$port"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg " $port"
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>- puts "MacPorts Version: [macports::version]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> foreach port $sorted_snapshot_portlist {
set name [string trim [lindex $port 0]]
</pre><pre style='margin:0'>
</pre>