Changeset 99115


Ignore:
Timestamp:
Oct 27, 2012, 6:02:38 AM (12 years ago)
Author:
ryandesign@…
Message:

conflicts_build-1.0.tcl: support subports; add custom message when the port a port conflicts with is itself (i.e. petsc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/conflicts_build-1.0.tcl

    r97494 r99115  
    4848
    4949proc conflicts_build._check_for_conflicting_ports {} {
    50     global conflicts_build name
     50    global conflicts_build subport
    5151    foreach badport ${conflicts_build} {
    5252        if {![catch "registry_active ${badport}"]} {
    53             ui_error "${name} cannot be built while ${badport} is active."
    54             ui_error "Please deactivate ${badport} and try again."
    55             ui_error "You can reactivate ${badport} again later."
     53            if {${subport} == ${badport}} {
     54                ui_error "${subport} cannot be built while another version of ${badport} is active."
     55                ui_error "Please deactivate the existing copy of ${badport} and try again."
     56            } else {
     57                ui_error "${subport} cannot be built while ${badport} is active."
     58                ui_error "Please deactivate ${badport} and try again."
     59                ui_error "You can reactivate ${badport} again later."
     60            }
    5661            return -code error "${badport} is active"
    5762        }
Note: See TracChangeset for help on using the changeset viewer.