summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-03 22:27:31 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-03 22:27:31 +0000
commit5e0b4c49966d2829e0d585ef3dd1303f346a6f01 (patch)
treeb2ec12da70fd3ffab5dd3a779c492f9da6cd028b
parent2ea19f1a1f6b44cd0ed4d518e7a9404c95d60d88 (diff)
downloadportage-5e0b4c49966d2829e0d585ef3dd1303f346a6f01.tar.gz
portage-5e0b4c49966d2829e0d585ef3dd1303f346a6f01.tar.bz2
portage-5e0b4c49966d2829e0d585ef3dd1303f346a6f01.zip
Make the USE=test RDEPEND check (bug #236786) also apply to PDEPEND.
svn path=/main/trunk/; revision=13882
-rwxr-xr-xbin/repoman9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/repoman b/bin/repoman
index 97f24ccd2..6569cc364 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1411,10 +1411,11 @@ for x in scanlist:
for token in mydepstr.split():
if token in operator_tokens or \
token[-1:] == "?":
- if token == "test?" and mytype == "RDEPEND":
- stats['RDEPEND.suspect'] += 1
- fails['RDEPEND.suspect'].append(relative_path + \
- ": 'test?' USE conditional in RDEPEND")
+ if token == "test?" and \
+ mytype in ("RDEPEND", "PDEPEND"):
+ stats[mytype + '.suspect'] += 1
+ fails[mytype + '.suspect'].append(relative_path + \
+ ": 'test?' USE conditional in %s" % mytype)
continue
try:
atom = portage.dep.Atom(token)