112 | | ui_msg "$UI_PREFIX [format [msgcat::mc "Unable to uninstall %s %s_%s%s, the following ports depend on it:"] $portname $version $revision $variants]" |
113 | | foreach depport $dl { |
114 | | ui_msg "$UI_PREFIX [format [msgcat::mc " %s"] $depport]" |
115 | | } |
116 | | if { [info exists uninstall.force] && [string equal ${uninstall.force} "yes"] } { |
117 | | ui_warn "Uninstall forced. Proceeding despite dependencies." |
118 | | } else { |
119 | | return -code error "Please uninstall the ports that depend on $portname first." |
120 | | } |
| 113 | # will need to change this when we get version/variant dependencies |
| 114 | if {$nb_versions_installed == 1 || $active == 1} { |
| 115 | ui_msg "$UI_PREFIX [format [msgcat::mc "Unable to uninstall %s %s_%s%s, the following ports depend on it:"] $portname $version $revision $variants]" |
| 116 | foreach depport $dl { |
| 117 | ui_msg "$UI_PREFIX [format [msgcat::mc " %s"] $depport]" |
| 118 | } |
| 119 | if { [info exists uninstall.force] && [string equal ${uninstall.force} "yes"] } { |
| 120 | ui_warn "Uninstall forced. Proceeding despite dependencies." |
| 121 | } else { |
| 122 | return -code error "Please uninstall the ports that depend on $portname first." |
| 123 | } |
| 124 | } |