diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-05 03:56:47 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-05 03:56:47 +0000 |
commit | af9f16c82681663fe111968b7231102d0e37e9a6 (patch) | |
tree | e58d561af10eab1a298c7ba89972251ea46fec4e | |
parent | cee522abd243f0344986e0125f3d47d503a05d3a (diff) | |
download | portage-af9f16c82681663fe111968b7231102d0e37e9a6.tar.gz portage-af9f16c82681663fe111968b7231102d0e37e9a6.tar.bz2 portage-af9f16c82681663fe111968b7231102d0e37e9a6.zip |
Make the EbuildQuote check ignore lines beginning
with local or export builtins since unquoted
assignments are okay there.
svn path=/main/trunk/; revision=7942
-rw-r--r-- | pym/repoman/checks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index d30785aed..d956b83f8 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -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)') |