Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r15261 - main/branches/2.1.7/pym/repoman
Date: Fri, 29 Jan 2010 18:51:54
Message-Id: E1Navwa-0007XR-JZ@stork.gentoo.org
1 Author: zmedico
2 Date: 2010-01-29 18:51:48 +0000 (Fri, 29 Jan 2010)
3 New Revision: 15261
4
5 Modified:
6 main/branches/2.1.7/pym/repoman/checks.py
7 main/branches/2.1.7/pym/repoman/errors.py
8 Log:
9 Add a warning for built_with_use. Thanks to Petteri R?\195?\164ty <betelgeuse@g.o> for
10 this patch. (trunk r15209)
11
12 Modified: main/branches/2.1.7/pym/repoman/checks.py
13 ===================================================================
14 --- main/branches/2.1.7/pym/repoman/checks.py 2010-01-29 18:51:27 UTC (rev 15260)
15 +++ main/branches/2.1.7/pym/repoman/checks.py 2010-01-29 18:51:48 UTC (rev 15261)
16 @@ -432,6 +432,12 @@
17 return ("'%s'" % m.group(1)) + \
18 " call should be moved to src_prepare from line: %d"
19
20 +class BuiltWithUse(LineCheck):
21 + repoman_check_name = 'ebuild.minorsyn'
22 + ignore_line = re.compile(r'^\s*#')
23 + re = re.compile('^.*built_with_use')
24 + error = errors.BUILT_WITH_USE
25 +
26 # EAPI-4 checks
27 class Eapi4IncompatibleFuncs(LineCheck):
28 repoman_check_name = 'EAPI.incompatible'
29 @@ -467,7 +473,6 @@
30 return ("variable '$%s'" % m.group(1)) + \
31 " is gone in EAPI=4 on line: %d"
32
33 -
34 _constant_checks = tuple((c() for c in (
35 EbuildHeader, EbuildWhitespace, EbuildBlankLine, EbuildQuote,
36 EbuildAssignment, EbuildUselessDodoc,
37 @@ -476,7 +481,7 @@
38 IUseUndefined, InheritAutotools,
39 EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded,
40 DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue,
41 - SrcCompileEconf, Eapi4IncompatibleFuncs, Eapi4GoneVars)))
42 + SrcCompileEconf, Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse)))
43
44 _here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$')
45
46
47 Modified: main/branches/2.1.7/pym/repoman/errors.py
48 ===================================================================
49 --- main/branches/2.1.7/pym/repoman/errors.py 2010-01-29 18:51:27 UTC (rev 15260)
50 +++ main/branches/2.1.7/pym/repoman/errors.py 2010-01-29 18:51:48 UTC (rev 15261)
51 @@ -18,3 +18,4 @@
52 DEPRECATED_BINDNOW_FLAGS = 'Deprecated bindnow-flags call on line: %d'
53 EAPI_DEFINED_AFTER_INHERIT = 'EAPI defined after inherit on line: %d'
54 NO_AS_NEEDED = 'Upstream asneeded linking bug (no-as-needed on line: %d)'
55 +BUILT_WITH_USE = 'built_with_use on line: %d'