1 |
Author: zmedico |
2 |
Date: 2008-04-28 01:30:49 +0000 (Mon, 28 Apr 2008) |
3 |
New Revision: 10011 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.2/bin/repoman |
7 |
Log: |
8 |
Fix the EbuildQuote check to ignore "echo" and the elog functions since |
9 |
people might not want quotes in those cases. (trunk r10006) |
10 |
|
11 |
|
12 |
Modified: main/branches/2.1.2/bin/repoman |
13 |
=================================================================== |
14 |
--- main/branches/2.1.2/bin/repoman 2008-04-28 01:29:34 UTC (rev 10010) |
15 |
+++ main/branches/2.1.2/bin/repoman 2008-04-28 01:30:49 UTC (rev 10011) |
16 |
@@ -955,7 +955,10 @@ |
17 |
"""Ensure ebuilds have valid quoting around things like D,FILESDIR, etc...""" |
18 |
|
19 |
repoman_check_name = 'ebuild.minorsyn' |
20 |
- ignore_line = re.compile(r'(^$)|(^\s*#.*)|(^\s*\w+=.*)|(^\s*(local|export)\s+)') |
21 |
+ _ignored_commands = ["echo", "local", "export"] |
22 |
+ _ignored_commands += ["eerror", "einfo", "elog", "eqawarn", "ewarn"] |
23 |
+ ignore_line = re.compile(r'(^$)|(^\s*#.*)|(^\s*\w+=.*)' + \ |
24 |
+ r'|(^\s*(' + "|".join(_ignored_commands) + r')\s+)') |
25 |
var_names = ["D", "DISTDIR", "FILESDIR", "S", "T", "ROOT", "WORKDIR"] |
26 |
|
27 |
# variables for games.eclass |
28 |
|
29 |
-- |
30 |
gentoo-commits@l.g.o mailing list |