From 0db2a617938c50900e75cf52c767c3acf6647b76 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 28 Jun 2009 18:24:23 +0000 Subject: Bug #236786 - Warn about 'test?' USE conditionals in RDEPEND. Thanks to Markus Meier for this patch. svn path=/main/trunk/; revision=13724 --- bin/repoman | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/repoman b/bin/repoman index 41c811039..09b79da23 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1404,7 +1404,11 @@ for x in scanlist: if mytype in ("DEPEND", "RDEPEND", "PDEPEND"): for token in mydepstr.split(): if token in operator_tokens or \ - token.endswith("?"): + token[-1:] == "?": + if token == "test?" and mytype == "RDEPEND": + stats['RDEPEND.suspect'] += 1 + fails['RDEPEND.suspect'].append(relative_path + \ + ": 'test?' USE conditional in RDEPEND") continue try: atom = portage.dep.Atom(token) -- cgit v1.2.3-1-g7c22