Ignore:
Timestamp:
Sep 13, 2007, 5:43:04 PM (10 years ago)
Author:
afb@…
Message:

work with missing variables

File:
1 edited

Legend:

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

    r29040 r29042  
    298298    }
    299299
    300     foreach platform $platforms {
    301        if {[lsearch -exact $lint_platforms $platform] == -1} {
    302             ui_error "Unknown platform: $platform"
    303             incr errors
    304         } else {
    305             ui_info "OK: Found platform: $platform"
    306         }
    307     }
    308 
    309     foreach category $categories {
    310        if {[lsearch -exact $lint_categories $category] == -1} {
    311             ui_error "Unknown category: $category"
    312             incr errors
    313         } else {
    314             ui_info "OK: Found category: $category"
     300    if {[info exists platforms]} {
     301        foreach platform $platforms {
     302           if {[lsearch -exact $lint_platforms $platform] == -1} {
     303                ui_error "Unknown platform: $platform"
     304                incr errors
     305            } else {
     306                ui_info "OK: Found platform: $platform"
     307            }
     308        }
     309    }
     310
     311    if {[info exists categories]} {
     312        foreach category $categories {
     313           if {[lsearch -exact $lint_categories $category] == -1} {
     314                ui_error "Unknown category: $category"
     315                incr errors
     316            } else {
     317                ui_info "OK: Found category: $category"
     318            }
    315319        }
    316320    }
Note: See TracChangeset for help on using the changeset viewer.