diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-05 04:00:20 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-05 04:00:20 +0000 |
commit | 571988df251f484c9a632b98c14373d02e448a7c (patch) | |
tree | 474066992adf3ed71cf4132db1a45491c94711bb /bin | |
parent | eb458949e7634f7353c8604f58fb495ce04e9871 (diff) | |
download | portage-571988df251f484c9a632b98c14373d02e448a7c.tar.gz portage-571988df251f484c9a632b98c14373d02e448a7c.tar.bz2 portage-571988df251f484c9a632b98c14373d02e448a7c.zip |
Make the EbuildQuote check ignore lines beginning
with local or export builtins since unquoted
assignments are okay there. (trunk r7942)
svn path=/main/branches/2.1.2/; revision=7943
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/repoman | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman index 42e82f855..42e4cd0b2 100755 --- a/bin/repoman +++ b/bin/repoman @@ -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)') |