Changes between Initial Version and Version 1 of Ticket #70556, comment 4
- Timestamp:
- Aug 15, 2024, 2:10:11 PM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #70556, comment 4
initial v1 7 7 #!/usr/bin/env port-tclsh 8 8 9 set t0 [clock clicks -millisec] 9 10 package require macports 1.0 10 11 package require registry 1.0 12 puts "Startup took [expr {([clock clicks -millisec]-$t0)/1000.}] sec" 11 13 12 14 array set ui_options {} … … 20 22 puts -nonewline "Initialising MacPorts ..." 21 23 flush stdout 24 set t0 [clock clicks -millisec] 22 25 mportinit ui_options global_options global_variations 23 puts " done "26 puts " done ([expr {([clock clicks -millisec]-$t0)}] ms)" 24 27 25 28 ui_msg "MacPorts version [macports::version], registry version [registry::metadata get version]" … … 27 30 set maybe "" 28 31 if {[catch {registry::set_needs_vacuum}]} { 29 30 32 ui_warn "Your MacPorts version doesn't allow to program a registry VACUUM operation" 33 set maybe "maybe " 31 34 } else { 32 35 ui_msg "Called registry::set_needs_vacuum" 33 36 } 34 37 35 38 puts -nonewline "Closing registry and ${maybe}performing vacuum ..." 36 39 flush stdout 40 set t0 [clock clicks -millisec] 37 41 mportshutdown 38 puts " done "42 puts " done ([expr {([clock clicks -millisec]-$t0)}] ms)" 39 43 }}} 44 45 (edited for the timing freaks like me)