Changeset 80893
- Timestamp:
- 07/20/11 10:24:31 (4 years ago)
- File:
-
- 1 edited
-
contrib/restore_ports/restore_ports.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contrib/restore_ports/restore_ports.tcl
r79171 r80893 144 144 145 145 proc install_ports {operationList} { 146 if {[rpm-vercomp [macports::version] 1.9.1] < 0} {147 set install_target install148 } else {149 set install_target activate150 }151 146 foreach op $operationList { 152 147 set name [string trim [lindex $op 0]] 153 148 set variations [lindex $op 1] 154 149 set active [lindex $op 2] 155 156 if {[catch {set res [mportlookup $name]} result]} { 150 151 if {!$active || [rpm-vercomp [macports::version] 1.9.1] < 0} { 152 set install_target install 153 } else { 154 set install_target activate 155 } 156 157 if {[catch {set res [mportlookup $name]} result]} { 157 158 global errorInfo 158 159 ui_debug "$errorInfo" … … 184 185 185 186 # XXX some ports may be reactivated to fulfil dependencies - check again at the end? 186 if {!$active} { 187 if {[llength [info commands "portimage::deactivate_composite"]] == 1} { 188 if {[catch {portimage::deactivate $name "" "" 0 [list ports_nodepcheck 1]} result]} { 189 global errorInfo 190 ui_debug "$errorInfo" 191 return -code error "port deactivate failed: $result" 192 } 193 } else { 194 if {[catch {portimage::deactivate $name "" [list ports_nodepcheck 1]} result]} { 195 global errorInfo 196 ui_debug "$errorInfo" 197 return -code error "port deactivate failed: $result" 198 } 187 if {[rpm-vercomp [macports::version] 1.9.1] < 0 && !$active} { 188 if {[catch {portimage::deactivate $name "" [list ports_nodepcheck 1]} result]} { 189 global errorInfo 190 ui_debug "$errorInfo" 191 return -code error "port deactivate failed: $result" 199 192 } 200 193 }
Note: See TracChangeset
for help on using the changeset viewer.

