Ticket #45010: portmain.tcl.diff

File portmain.tcl.diff, 629 bytes (added by kurthindenburg (Kurt Hindenburg), 9 years ago)
  • src/port1.0/portmain.tcl

     
    175175# end gsoc08-privileges
    176176
    177177proc portmain::main {args} {
     178    # If "port test", verify port has tests enabled; dependencies will still be installed.
     179    global subport test.run
     180    if {[lindex [info level 1] 1] eq "test"} {
     181        if {![tbool test.run]} {
     182            return -code error [format [msgcat::mc "%s has no tests turned on. see 'test.run' in portfile(7)"] $subport]
     183        }
     184    }
    178185    return 0
    179186}