Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2012 12:12:45 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r242219 - user/crees/rclint
Message-ID:  <201210281212.q9SCCjwE002925@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees (ports committer)
Date: Sun Oct 28 12:12:45 2012
New Revision: 242219
URL: http://svn.freebsd.org/changeset/base/242219

Log:
  Check multiple keywords (an accidental omission)
  
  Allow $* in run_rc_command

Modified:
  user/crees/rclint/rclint.py

Modified: user/crees/rclint/rclint.py
==============================================================================
--- user/crees/rclint/rclint.py	Sun Oct 28 11:53:54 2012	(r242218)
+++ user/crees/rclint/rclint.py	Sun Oct 28 12:12:45 2012	(r242219)
@@ -28,7 +28,7 @@ __version__ = '$FreeBSD$'
 
 MAJOR = 0
 MINOR = 0
-MICRO = 2
+MICRO = 3
 
 DATADIR = '.'
 
@@ -194,7 +194,7 @@ class Rcorder:
         self.line = comment.line
         result = comment.match('# ([A-Z]+): (.+)')
         if result:
-            (self.type, self.value) = (result[0], result[1:])
+            (self.type, self.value) = (result[0], result[1].split())
         else:
             self.value = False
 
@@ -416,7 +416,7 @@ def do_rclint(filename):
     logging.debug('Checking for run_rc_command')
     for s in lineobj['Statement']:
         if s.type == 'run_rc_command':
-            if '$1' not in s.value:
+            if '$1' not in s.value and '$*' not in s.value:
                 error.give('run_rc_argument', s.line)
 
     # Strip .in from filename



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210281212.q9SCCjwE002925>