1 |
Author: zmedico |
2 |
Date: 2009-08-03 22:27:31 +0000 (Mon, 03 Aug 2009) |
3 |
New Revision: 13882 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/repoman |
7 |
Log: |
8 |
Make the USE=test RDEPEND check (bug #236786) also apply to PDEPEND. |
9 |
|
10 |
|
11 |
Modified: main/trunk/bin/repoman |
12 |
=================================================================== |
13 |
--- main/trunk/bin/repoman 2009-08-03 21:20:22 UTC (rev 13881) |
14 |
+++ main/trunk/bin/repoman 2009-08-03 22:27:31 UTC (rev 13882) |
15 |
@@ -1411,10 +1411,11 @@ |
16 |
for token in mydepstr.split(): |
17 |
if token in operator_tokens or \ |
18 |
token[-1:] == "?": |
19 |
- if token == "test?" and mytype == "RDEPEND": |
20 |
- stats['RDEPEND.suspect'] += 1 |
21 |
- fails['RDEPEND.suspect'].append(relative_path + \ |
22 |
- ": 'test?' USE conditional in RDEPEND") |
23 |
+ if token == "test?" and \ |
24 |
+ mytype in ("RDEPEND", "PDEPEND"): |
25 |
+ stats[mytype + '.suspect'] += 1 |
26 |
+ fails[mytype + '.suspect'].append(relative_path + \ |
27 |
+ ": 'test?' USE conditional in %s" % mytype) |
28 |
continue |
29 |
try: |
30 |
atom = portage.dep.Atom(token) |