From 5a99498c199dc8246082af6386e943d7920b020e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 10 Nov 2007 17:31:08 +0000 Subject: Make the EbuildQuote.missing_quotes regex accept single quotes where it accepts double quotes in order to eliminate some false positives. Thanks to Krzysiek Pawlik for reporting. svn path=/main/trunk/; revision=8485 --- pym/repoman/checks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/repoman') diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index 63a097501..916003e7e 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -78,8 +78,8 @@ class EbuildQuote(LineCheck): var_names = r'(D|S|T|ROOT|FILESDIR|WORKDIR)' var_reference = re.compile(r'\$(\{'+var_names+'\}|' + \ var_names + '\W)') - missing_quotes = re.compile(r'(\s|^)[^"\s]*\$\{?' + var_names + \ - r'\}?[^"\s]*(\s|$)') + missing_quotes = re.compile(r'(\s|^)[^"\'\s]*\$\{?' + var_names + \ + r'\}?[^"\'\s]*(\s|$)') cond_begin = re.compile(r'(^|\s+)\[\[($|\\$|\s+)') cond_end = re.compile(r'(^|\s+)\]\]($|\\$|\s+)') -- cgit v1.2.3-1-g7c22