From: Zac Medico Date: Thu, 1 Nov 2007 18:19:53 +0000 (-0000) Subject: Remove an extra \$ from the EbuildQuote.var_reference regex X-Git-Tag: v2.2_pre1~471 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a3af6baaebf532a181fbb596e7c4032b1409050e;p=portage.git Remove an extra \$ from the EbuildQuote.var_reference regex so that it will properly match things like variable references without braces, like $S. svn path=/main/trunk/; revision=8354 --- diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index d6fcc1318..66918cbd8 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -121,7 +121,7 @@ class EbuildQuote(ContentCheck): 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)') + var_names + '\W)') missing_quotes = re.compile(r'(\s|^)[^"\s]*\${?' + var_names + \ r'}?[^"\s]*(\s|$)') cond_begin = re.compile(r'(^|\s+)\[\[($|\\$|\s+)')