From b908c181406cb538f3fb270e5bf996073ee13375 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 28 Apr 2008 01:30:49 +0000 Subject: [PATCH] Fix the EbuildQuote check to ignore "echo" and the elog functions since people might not want quotes in those cases. (trunk r10006) svn path=/main/branches/2.1.2/; revision=10011 --- bin/repoman | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/repoman b/bin/repoman index 5720bf112..5cf54d6d5 100755 --- a/bin/repoman +++ b/bin/repoman @@ -955,7 +955,10 @@ class EbuildQuote(LineCheck): """Ensure ebuilds have valid quoting around things like D,FILESDIR, etc...""" repoman_check_name = 'ebuild.minorsyn' - ignore_line = re.compile(r'(^$)|(^\s*#.*)|(^\s*\w+=.*)|(^\s*(local|export)\s+)') + _ignored_commands = ["echo", "local", "export"] + _ignored_commands += ["eerror", "einfo", "elog", "eqawarn", "ewarn"] + ignore_line = re.compile(r'(^$)|(^\s*#.*)|(^\s*\w+=.*)' + \ + r'|(^\s*(' + "|".join(_ignored_commands) + r')\s+)') var_names = ["D", "DISTDIR", "FILESDIR", "S", "T", "ROOT", "WORKDIR"] # variables for games.eclass -- 2.26.2