svn commit: r242009 - user/crees/rclint

Chris Rees crees at FreeBSD.org
Wed Oct 24 16:56:58 UTC 2012


Author: crees (ports committer)
Date: Wed Oct 24 16:56:57 2012
New Revision: 242009
URL: http://svn.freebsd.org/changeset/base/242009

Log:
  Allow _user to be clobbered; blank values not allowed

Modified:
  user/crees/rclint/rclint.py

Modified: user/crees/rclint/rclint.py
==============================================================================
--- user/crees/rclint/rclint.py	Wed Oct 24 16:53:02 2012	(r242008)
+++ user/crees/rclint/rclint.py	Wed Oct 24 16:56:57 2012	(r242009)
@@ -237,7 +237,7 @@ def do_ports_checking(lineobj, filename)
     logging.debug('Checking for defaults clobbering blank values')
     for var in lineobj['Variable']:
         if var.type in ('longhand', 'shorthand'):
-            if var.name.split('_')[-1] not in ('enable') and var.clobber:
+            if var.name.split('_')[-1] not in ('enable', 'user') and var.clobber:
                 error.give('variables_defaults_non_mandatory_colon', var.line)
             elif not var.clobber and var.name.split('_')[-1] in ('enable'):
                 error.give('variables_defaults_mandatory_colon', var.line)


More information about the svn-src-user mailing list