Changeset 81464
- Timestamp:
- 07/31/11 02:26:50 (4 years ago)
- File:
-
- 1 edited
-
trunk/base/src/images_to_archives.tcl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/images_to_archives.tcl
r80178 r81464 34 34 # the registry only after we know all creation attempts were successful. 35 35 set archived_list {} 36 set installed_len [llength $ilist] 37 set counter 0 36 38 37 39 foreach installed $ilist { 40 incr counter 38 41 set iname [lindex $installed 0] 39 42 set iversion [lindex $installed 1] … … 85 88 # compute new name and location of archive 86 89 set archivename "${iname}-${iversion}_${irevision}${ivariants}.${macports::os_platform}_${macports::os_major}.[join $archs -].${archivetype}" 90 ui_msg "Processing ${counter} of ${installed_len}: ${archivename}" 87 91 if {$installtype == "image"} { 88 92 set targetdir [file dirname $location] … … 116 120 } 117 121 122 set archived_len [llength $archived_list] 123 set counter 0 124 118 125 registry::write { 119 126 foreach archived $archived_list { 127 incr counter 128 ui_msg "Updating registry: ${counter} of ${archived_len}" 120 129 set installtype [lindex $archived 0] 121 130 set iref [lindex $archived 1] … … 135 144 } 136 145 146 set counter 0 137 147 foreach archived $archived_list { 148 incr counter 138 149 set location [lindex $archived 2] 150 ui_msg "Deleting ${counter} of ${archived_len}: ${location}" 139 151 if {$location != "" && [file isdirectory $location]} { 140 152 if {[catch {file delete -force $location} result]} {
Note: See TracChangeset
for help on using the changeset viewer.

