summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gentoo.org>2006-01-05 08:37:40 +0000
committerBrian Harring <ferringb@gentoo.org>2006-01-05 08:37:40 +0000
commit66d5fa98fb2c4788a3b2ada3436719b4d0cf5830 (patch)
tree15b7cf4c827eb81194296074a7c5f2e770b16e69
parentafd26ffa8819f1a61a3a41ee5a549f254363b153 (diff)
downloadportage-66d5fa98fb2c4788a3b2ada3436719b4d0cf5830.tar.gz
portage-66d5fa98fb2c4788a3b2ada3436719b4d0cf5830.tar.bz2
portage-66d5fa98fb2c4788a3b2ada3436719b4d0cf5830.zip
filter '(' and ')' tokens also when checking for invalid atoms.
svn path=/main/trunk/; revision=2533
-rwxr-xr-xbin/repoman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 19e0c430d..39c92902c 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -989,7 +989,7 @@ for x in scanlist:
if mytype in ("DEPEND", "RDEPEND", "PDEPEND"):
- for token in filter(lambda x: not (x.endswith("?") or x.strip() in ("||", "&&")), mydepstr.split()):
+ for token in filter(lambda x: not (x.endswith("?") or x.strip() in ("||", "&&", "(", ")")), mydepstr.split()):
if not "/" in token:
badsyntax.append("'%s' not a valid atom" % token)