Skip to content
Permalink
Browse files

restore: Clean up output

The MacPorts version does not matter when restoring a set of ports.
Remove it.

Instead of printing a list of ports using 'puts', switch to 'ui_msg' and
add a header line. This should make the output look much nicer.
  • Loading branch information
neverpanic committed Jan 7, 2018
1 parent 3fc1f83 commit 6a58ee7291c2eda07e62c5065a9eefa815eff22d
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/macports1.0/restore.tcl
@@ -275,10 +275,11 @@ namespace eval restore {

proc restore_state {snapshot_portlist} {
set sorted_snapshot_portlist [portlist_sort_dependencies_first $snapshot_portlist]
ui_msg "Installing ports:"
foreach port $sorted_snapshot_portlist {
puts "$port"
ui_msg " $port"
}
puts "MacPorts Version: [macports::version]"

foreach port $sorted_snapshot_portlist {

set name [string trim [lindex $port 0]]

0 comments on commit 6a58ee7

Please sign in to comment.
You can’t perform that action at this time.