[29042] trunk/base/src/port1.0/portlint.tcl
source_changes at macosforge.org
source_changes at macosforge.org
Thu Sep 13 10:43:05 PDT 2007
Revision: 29042
http://trac.macosforge.org/projects/macports/changeset/29042
Author: afb at macports.org
Date: 2007-09-13 10:43:04 -0700 (Thu, 13 Sep 2007)
Log Message:
-----------
work with missing variables
Modified Paths:
--------------
trunk/base/src/port1.0/portlint.tcl
Modified: trunk/base/src/port1.0/portlint.tcl
===================================================================
--- trunk/base/src/port1.0/portlint.tcl 2007-09-13 17:26:04 UTC (rev 29041)
+++ trunk/base/src/port1.0/portlint.tcl 2007-09-13 17:43:04 UTC (rev 29042)
@@ -297,21 +297,25 @@
}
}
- foreach platform $platforms {
- if {[lsearch -exact $lint_platforms $platform] == -1} {
- ui_error "Unknown platform: $platform"
- incr errors
- } else {
- ui_info "OK: Found platform: $platform"
+ if {[info exists platforms]} {
+ foreach platform $platforms {
+ if {[lsearch -exact $lint_platforms $platform] == -1} {
+ ui_error "Unknown platform: $platform"
+ incr errors
+ } else {
+ ui_info "OK: Found platform: $platform"
+ }
}
}
- foreach category $categories {
- if {[lsearch -exact $lint_categories $category] == -1} {
- ui_error "Unknown category: $category"
- incr errors
- } else {
- ui_info "OK: Found category: $category"
+ if {[info exists categories]} {
+ foreach category $categories {
+ if {[lsearch -exact $lint_categories $category] == -1} {
+ ui_error "Unknown category: $category"
+ incr errors
+ } else {
+ ui_info "OK: Found category: $category"
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070913/3b278331/attachment.html
More information about the macports-changes
mailing list