summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-09 19:30:13 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-09 19:30:13 +0000
commit9289a8996757b2645e5a93b8a14300beca8149d0 (patch)
tree5f947557dbcc3f62f9afa82b705eac44e08f1d66
parentfb43a0ac59f5d878a455015ddbf24957263269e1 (diff)
downloadportage-9289a8996757b2645e5a93b8a14300beca8149d0.tar.gz
portage-9289a8996757b2645e5a93b8a14300beca8149d0.tar.bz2
portage-9289a8996757b2645e5a93b8a14300beca8149d0.zip
Use portage.isvalidatom() for atom validation in repoman.
svn path=/main/trunk/; revision=5240
-rwxr-xr-xbin/repoman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index e2f4ae2c2..451bd21d0 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1099,7 +1099,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()):
- if not "/" in token or \
+ if not portage.isvalidatom(token) or \
":" in token and myaux["EAPI"] == "0":
badsyntax.append("'%s' not a valid atom" % token)