summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-01 18:19:53 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-01 18:19:53 +0000
commita3af6baaebf532a181fbb596e7c4032b1409050e (patch)
treefc68487e68934d0bd7e4b96311d688e794d24260
parent3a95784f6ba9ebc2b79a96d1220d23497bc1a360 (diff)
downloadportage-a3af6baaebf532a181fbb596e7c4032b1409050e.tar.gz
portage-a3af6baaebf532a181fbb596e7c4032b1409050e.tar.bz2
portage-a3af6baaebf532a181fbb596e7c4032b1409050e.zip
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
-rw-r--r--pym/repoman/checks.py2
1 files changed, 1 insertions, 1 deletions
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+)')