[84555] trunk/base/src/port1.0/portlint.tcl
snc at macports.org
snc at macports.org
Tue Sep 27 18:23:06 PDT 2011
Revision: 84555
http://trac.macports.org/changeset/84555
Author: snc at macports.org
Date: 2011-09-27 18:23:03 -0700 (Tue, 27 Sep 2011)
Log Message:
-----------
base: lint error when license is not set, #30194
Modified Paths:
--------------
trunk/base/src/port1.0/portlint.tcl
Modified: trunk/base/src/port1.0/portlint.tcl
===================================================================
--- trunk/base/src/port1.0/portlint.tcl 2011-09-27 21:50:08 UTC (rev 84554)
+++ trunk/base/src/port1.0/portlint.tcl 2011-09-28 01:23:03 UTC (rev 84555)
@@ -43,6 +43,7 @@
"homepage" \
"master_sites" \
"checksums" \
+ "license"
]
set lint_optional [list \
@@ -289,7 +290,7 @@
global version revision epoch
set portarch [get_canonical_archs]
global description long_description platforms categories all_variants
- global maintainers homepage master_sites checksums patchfiles
+ global maintainers license homepage master_sites checksums patchfiles
global depends_fetch depends_extract depends_lib depends_build depends_run distfiles fetch.type
global lint_portsystem lint_platforms
@@ -500,6 +501,11 @@
incr warnings
}
+ if {[string match "unknown" $license]} {
+ ui_error "$license license"
+ incr errors
+ }
+
# these checks are only valid for ports stored in the regular tree directories
if {[info exists category] && $portcatdir != $category} {
ui_error "Portfile parent directory $portcatdir does not match primary category $category"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110927/38a7b898/attachment.html>
More information about the macports-changes
mailing list