[89583] trunk/base/src/port1.0/portlint.tcl

snc at macports.org snc at macports.org
Fri Feb 3 08:30:03 PST 2012


Revision: 89583
          http://trac.macports.org/changeset/89583
Author:   snc at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120203/ff92659c/attachment.html>


More information about the macports-changes mailing list