Bug #212621 - Make the EbuildQuote check do quoting validation for misc
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 12:41:23 +0000 (12:41 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 12:41:23 +0000 (12:41 -0000)
variables from games.eclass. (trunk r9507)

svn path=/main/branches/2.1.2/; revision=9569

bin/repoman

index db1dbd90c886974a19209bc121547906f68195f0..f927fc22119707a68f7b2d40a36fd72303b42a0a 100755 (executable)
@@ -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 + \