Changeset 34512


Ignore:
Timestamp:
Feb 27, 2008, 9:36:56 AM (13 years ago)
Author:
afb@…
Message:

lint: check that all dependencies actually exist (#14380)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portlint.tcl

    r34252 r34512  
    284284    global description long_description platforms categories all_variants
    285285    global maintainers homepage master_sites checksums patchfiles
    286     global fetch.type
     286    global depends_lib depends_build depends_run fetch.type
    287287   
    288288    global lint_portsystem lint_platforms lint_categories
     
    417417    }
    418418
     419    set all_depends {}
     420    if {[info exists depends_lib]} { lappend all_depends $depends_lib }
     421    if {[info exists depends_build]} { lappend all_depends $depends_build }
     422    if {[info exists depends_run]} { lappend all_depends $depends_run }
     423    foreach depspec $all_depends {
     424        set dep [lindex [split $depspec :] end]
     425        if {[catch {set res [mport_search "^$dep\$"]} error]} {
     426            global errorInfo
     427            ui_debug "$errorInfo"
     428            continue
     429        }
     430        if {$res == ""} {
     431            ui_error "Unknown dependency: $dep"
     432            incr errors
     433        } else {
     434            ui_info "OK: Found dependency: $dep"
     435        }
     436    }
     437
    419438    if {[string match "*darwinports@opendarwin.org*" $maintainers]} {
    420439        ui_warn "Using legacy email address for no/open maintainer"
Note: See TracChangeset for help on using the changeset viewer.