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

svn path=/main/branches/2.1.2/; revision=7943

bin/repoman

index 42e82f855cc12b501840a9578d5b28645ec848f9..42e4cd0b2c41b3620f530e72464542e5202ac8d9 100755 (executable)
@@ -755,7 +755,7 @@ class EbuildQuote(object):
        """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)')