[92733] trunk/base/src/port1.0/portlint.tcl
jmr at macports.org
jmr at macports.org
Fri May 4 20:50:47 PDT 2012
Revision: 92733
https://trac.macports.org/changeset/92733
Author: jmr at macports.org
Date: 2012-05-04 20:50:47 -0700 (Fri, 04 May 2012)
Log Message:
-----------
use elseif for mutually exclusive license cases
Modified Paths:
--------------
trunk/base/src/port1.0/portlint.tcl
Modified: trunk/base/src/port1.0/portlint.tcl
===================================================================
--- trunk/base/src/port1.0/portlint.tcl 2012-05-05 03:34:52 UTC (rev 92732)
+++ trunk/base/src/port1.0/portlint.tcl 2012-05-05 03:50:47 UTC (rev 92733)
@@ -543,21 +543,17 @@
}
}
- # BSD-2 => BSD
if {[string equal -nocase "BSD-2" $test]} {
+ # BSD-2 => BSD
ui_error "Invalid license '${test}': use BSD instead"
- }
-
- # BSD-3 => BSD
- if {[string equal -nocase "BSD-3" $test]} {
+ } elseif {[string equal -nocase "BSD-3" $test]} {
+ # BSD-3 => BSD
ui_error "Invalid license '${test}': use BSD instead"
- }
-
- # BSD-4 => BSD-old
- if {[string equal -nocase "BSD-4" $test]} {
+ } elseif {[string equal -nocase "BSD-4" $test]} {
+ # BSD-4 => BSD-old
ui_error "Invalid license '${test}': use BSD-old instead"
}
-
+
set prev $test
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120504/9589bbe8/attachment.html>
More information about the macports-changes
mailing list