svn commit: r242219 - user/crees/rclint
Chris Rees
crees at FreeBSD.org
Sun Oct 28 12:12:45 UTC 2012
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
More information about the svn-src-user
mailing list