Make the EbuildQuote check ignore lines beginning
authorZac Medico <zmedico@gentoo.org>
Fri, 5 Oct 2007 03:56:47 +0000 (03:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 5 Oct 2007 03:56:47 +0000 (03:56 -0000)
with local or export builtins since unquoted
assignments are okay there.

svn path=/main/trunk/; revision=7942

pym/repoman/checks.py

index d30785aed3e48a1f2d7033170c0b34b2d1714734..d956b83f8f3a0e7488d614bfc8fbc39322e1cbc2 100644 (file)
@@ -118,7 +118,7 @@ class EbuildQuote(ContentCheck):
        """Ensure ebuilds have valid quoting around things like D,FILESDIR, etc..."""
 
        repoman_check_name = 'ebuild.minorsyn'
-       ignore_line = re.compile(r'(^$)|(^\s*#.*)|(^\s*\w+=.*)')
+       ignore_line = re.compile(r'(^$)|(^\s*#.*)|(^\s*\w+=.*)|(^\s*(local|export)\s+)')
        var_names = r'(D|S|T|ROOT|FILESDIR|WORKDIR)'
        var_reference = re.compile(r'\$({'+var_names+'}|' + \
                r'\$' + var_names + '\W)')