Ticket #19224: patch-portutil.tcl.diff

File patch-portutil.tcl.diff, 538 bytes (added by lperry (Perry Lee), 15 years ago)
  • portutil.tcl

     
    16701670        }
    16711671    }
    16721672
     1673    # add required variants
     1674    foreach v [ditem_key $ditem requires] {
     1675        if {![variant_isset $v]} {
     1676            ui_debug "[option name]: Variant $name requires $v"
     1677            variant_set $v
     1678        }
     1679    }
     1680
    16731681    # execute proc with same name as variant.
    16741682    if {[catch "variant-${name}" result]} {
    16751683        global errorInfo