[30160] trunk/base/src/port1.0/portlint.tcl
source_changes at macosforge.org
source_changes at macosforge.org
Sun Oct 21 16:19:10 PDT 2007
Revision: 30160
http://trac.macosforge.org/projects/macports/changeset/30160
Author: nox at macports.org
Date: 2007-10-21 16:19:10 -0700 (Sun, 21 Oct 2007)
Log Message:
-----------
portlint.tcl (closes #12958): Added patchfiles format check.
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-10-21 21:01:22 UTC (rev 30159)
+++ trunk/base/src/port1.0/portlint.tcl 2007-10-21 23:19:10 UTC (rev 30160)
@@ -270,7 +270,7 @@
# hoping for "noarch" :
set portarch ${os.arch}
global description long_description platforms categories all_variants
- global maintainers homepage master_sites checksums
+ global maintainers homepage master_sites checksums patchfiles
global lint_portsystem lint_platforms lint_categories
global lint_required lint_optional lint_variants
@@ -380,6 +380,15 @@
incr warnings
}
+ if {[info exists patchfiles]} {
+ foreach patchfile $patchfiles {
+ if {![string match "patch-*.diff" $patchfile]} {
+ ui_warn "Patchfile $patchfile does not follow the source patch naming policy \"patch-*.file\""
+ incr warnings
+ }
+ }
+ }
+
### TODO: more checks to Tcl variables/sections
ui_debug "Name: $portname"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071021/4dc07237/attachment-0001.html
More information about the macports-changes
mailing list