[89583] trunk/base/src/port1.0/portlint.tcl
Revision: 89583 http://trac.macports.org/changeset/89583 Author: snc@macports.org Date: 2012-02-03 08:30:00 -0800 (Fri, 03 Feb 2012) Log Message: ----------- base: lint warnings for adduser/addgroup 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-02-03 16:28:59 UTC (rev 89582) +++ trunk/base/src/port1.0/portlint.tcl 2012-02-03 16:30:00 UTC (rev 89583) @@ -250,6 +250,11 @@ } } + if {[string match "*addgroup*" $line] || [string match "*adduser*" $line]} { + ui_warn "Line $lineno should use add_users" + incr warnings + } + if {[regexp {(^|\s)configure\s+\{\s*\}} $line]} { ui_warn "Line $lineno should say \"use_configure no\" instead of declaring an empty configure phase" incr warnings
participants (1)
-
snc@macports.org