From df269fa89f00eacabf855b88ce0dcf5add6b8fd6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 28 Mar 2008 12:41:23 +0000 Subject: [PATCH] Bug #212621 - Make the EbuildQuote check do quoting validation for misc variables from games.eclass. (trunk r9507) svn path=/main/branches/2.1.2/; revision=9569 --- bin/repoman | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/repoman b/bin/repoman index db1dbd90c..f927fc221 100755 --- a/bin/repoman +++ b/bin/repoman @@ -939,7 +939,14 @@ class EbuildQuote(LineCheck): repoman_check_name = 'ebuild.minorsyn' ignore_line = re.compile(r'(^$)|(^\s*#.*)|(^\s*\w+=.*)|(^\s*(local|export)\s+)') - var_names = r'(D|DISTDIR|FILESDIR|S|T|ROOT|WORKDIR)' + var_names = ["D", "DISTDIR", "FILESDIR", "S", "T", "ROOT", "WORKDIR"] + + # variables for games.eclass + var_names += ["Ddir", "dir", "GAMES_PREFIX_OPT", "GAMES_DATADIR", + "GAMES_DATADIR_BASE", "GAMES_SYSCONFDIR", "GAMES_STATEDIR", + "GAMES_LOGDIR", "GAMES_BINDIR"] + + var_names = "(%s)" % "|".join(var_names) var_reference = re.compile(r'\$(\{'+var_names+'\}|' + \ var_names + '\W)') missing_quotes = re.compile(r'(\s|^)[^"\'\s]*\$\{?' + var_names + \ -- 2.26.2